作者在 2007-03-15 00:56:00 发布以下内容
实现鼠标移动有菜单的方法
方法一:
< language=java>
ds(v)
{
var oTable = getElementById(v);
oTable.style.display = "";
}
hs(v)
{
var oTable = getElementById(v);
oTable.style.display = "none";
}
</>
<a href="#" over=ds("a1") out=hs("a1")>首页</a> |
<a href="#" over=ds("a2") out=hs("a2")>新闻动态</a> |
<table width=100% height=100 style="display:none" id="a1">
<tr><td> werwerwer | adsflkajdf | lasdjfalkd
</td></tr>
</table>
<table width=100% height=100 style="display:none" id="a2">
<tr><td> a2 | a2 | a3</td></tr>
</table>
方法二:
<a href="#" over=a1.style.display="" out=a1.style.display="none">首页</a> |
<table width=100% height=100 style="display:none" id="a1">
<tr><td> werwerwer | adsflkajdf | lasdjfalkd
</td></tr>
</table>