script有一些問題,另外,你的onmouseover和onmouseout是分別在2個層上的!︰)<script language="javascript">
var ii;
function showhide()
{
ii=window.setTimeout("hideme()",20)
}
function hideme()
{
Layer2.style.display="none"
//document.write(window.event.srcElement.tagName)
}
function showme()
{
Layer2.style.display=""
window.clearTimeout(ii)
}
</script>
var ii;
function showhide()
{
ii=window.setTimeout("hideme()",20)
}
function hideme()
{
Layer2.style.display="none"
//document.write(window.event.srcElement.tagName)
}
function showme()
{
Layer2.style.display=""
window.clearTimeout(ii)
}
</script>
层的onmouseout事件即发生,但这时鼠标仍然在该层内。??????
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function hideme()
{
Layer2.style.display="none"
}
</script>
</head><body bgcolor="#FFFFFF">
<div id="Layer2" OnMouseOut="return hideme();" style="position:absolute; background-color:black;width:200px; height:115px; z-index:1; left: 242px; top: 187px" >
<font color=red>2354764986-
3469-4658809</font>
</div>
</body>
</html>
当然单纯的文字应该不会引发ONMOUSEOUT的,但如果
用表格。。
以前,我在超链接上隐、现层,结果是显出来就消掉,
哈哈,查了半天。改成在层上点一下再消除吧。