function showPic(whichpic)
{
var source= whichpic.getAttribute("href");
var placeholder= document.getElementById("placeholder");
placeholder.src = source;
}
{
var source= whichpic.getAttribute("href");
var placeholder= document.getElementById("placeholder");
placeholder.src = source;
}
应该是setAttribute,而不是SetAttribute
注意大小写
第二,如果浏览器不支持setAttribute的话那个function就会出错的,他就会
因为你定义了href而转到新页面