js哪里为啥不能用这个
window.onload=function(){
var outer = document.getElementById("subject");
var list = outer.getElementsByTagName("li");
for(var i=0; i < list.length; i++){
list[i].onmouseover=function(){
list[i].className='';
}
this.className='big';
}
}
window.onload=function(){
var outer = document.getElementById("subject");
var list = outer.getElementsByTagName("li");
for(var i=0; i < list.length; i++){
list[i].onmouseover=function(){
list[i].className='';
}
this.className='big';
}
}
2015-08-05
举报