RT,代码如下:<style>#item{display:none}</style><scripttype="text/javascript">functionshow(obj){varXS=document.getElementById(obj);XS.style.display="block";}functionhide(... RT,代码如下:
<style>
#item{display:none}
</style>
<script type="text/javascript">
function show(obj){
var XS = document.getElementById(obj);
XS.style.display ="block";
}
function hide(obj){
var YC = document.getElementById(obj);
YC.style.display = "none";
}
</script>
<div id="one" onmouseover="show('item')" onmouseout="hide('item')">普通DIV</div>
<ul id="item">
<li>隐藏DIV0</li>
<li>隐藏DIV1</li>
</ul>
上面说错了 不是移入li,是鼠标移入id为one的DIV则显示UL
慕村225694
相关分类