<script language="javascript" type="text/javascript">
window.onload = function(){
var li = document.getElementById("myItem").getElementsByTagName("li");
for(var i=0;i<li.length;i++){
(function(){
li[a].onmouseover = function(){
this.style.display="block";
}
li[a].onmouseout = function(){
this.style.display ="none";
}
})(i);
}
}
</script>
3、
复制代码 代码如下: