第二段函数页面加载的时候不显示求前辈指导一下
functionshowPic(whichpic){varsource=whichpic.getAttribute("href");varthdx=document.ge...
function showPic(whichpic){
var source=whichpic.getAttribute("href");
var thdx=document.getElementById("kong");
thdx.setAttribute("src",source);
}
function countBodyChildren(){
var body_element=document.getElementByTagName("body")[0];
alert(body_element.childNodes.length);
}
window.onload=countBodyChildren; 展开
var source=whichpic.getAttribute("href");
var thdx=document.getElementById("kong");
thdx.setAttribute("src",source);
}
function countBodyChildren(){
var body_element=document.getElementByTagName("body")[0];
alert(body_element.childNodes.length);
}
window.onload=countBodyChildren; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询