window.onload=function(){ var ali=document.getElementsByTagName('li'); for (var i = 0; i < ali.length; i++) { ali[i].onmouseover=function(){ move(this,'width',500); } } function move(obj,attr,target){ obj.style.attr = target + "px"; }}
添加回答
举报
0/150
提交
取消