F
foreveryouth
Unregistered / Unconfirmed
GUEST, unregistred user!
<HTML>
<HEAD>
<script language="JavaScript">
showlayer(){
if(document.all) document.all.layer1.style.visibility="visible";
}
</script>
</HEAD>
<BODY>
<a href="#" onmouseover="showlayer()">asas</a>
<input type="button" value="Button" name="B1" onclick="showlayer()">
<div id="layer1" style="position:absolute;visibility:hidden;clip:rect(0 150 50 0);width:150px;background-color:lightyellow"></div>
</BODY>
</HTML>
当鼠标移到asas上和点击button时,提示缺少对象。哪儿出错,请指点。谢谢!
<HEAD>
<script language="JavaScript">
showlayer(){
if(document.all) document.all.layer1.style.visibility="visible";
}
</script>
</HEAD>
<BODY>
<a href="#" onmouseover="showlayer()">asas</a>
<input type="button" value="Button" name="B1" onclick="showlayer()">
<div id="layer1" style="position:absolute;visibility:hidden;clip:rect(0 150 50 0);width:150px;background-color:lightyellow"></div>
</BODY>
</HTML>
当鼠标移到asas上和点击button时,提示缺少对象。哪儿出错,请指点。谢谢!