为啥呢
window.onload = function(){
var li = document.getElementsByTagName("li");
for (var i = 0;i< li.length;i++){
li[i].onmouseover = ShowSub(this);
li[i].onmouseout = HideSub(this);
}
}
为啥这样不行呢?
window.onload = function(){
var li = document.getElementsByTagName("li");
for (var i = 0;i< li.length;i++){
li[i].onmouseover = ShowSub(this);
li[i].onmouseout = HideSub(this);
}
}
为啥这样不行呢?
2014-11-17
举报