最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

javascript輕松實現(xiàn)當(dāng)鼠標(biāo)移開時已彈出子菜單自動消失

 更新時間:2013年12月29日 16:27:05   作者:  
本文為大家詳細(xì)介紹下使用javascript實現(xiàn)當(dāng)鼠標(biāo)移開時已彈出子菜單自動消失,具體如下,感興趣的朋友不要錯過
復(fù)制代碼 代碼如下:

<html>
<head>
<style type="text/css">
.menu
{
background-color:green;
width:120;
height:20;
color: white;
text-align: center;
font-size:9pt;
font-weight:bolder;
}
.submenu
{
position:absolute;
top:40;
background-color:
yellow;width:180;
font-size:9pt;
}
</style>
</head>

<body>
<SCRIPT>
var cm=null;
document.onclick = new Function("show(null)")
function getPos(el,sprop)
{var iPos = 0
while (el!=null)
{iPos+=el["offset" + sprop]
el = el.offsetParent}
return iPos}
function show(el,m)
{if (m) { m.style.display='';
m.style.pixelLeft = getPos(el,"Left")
m.style.pixelTop = getPos(el,"Top") + el.offsetHeight}
if ((m!=cm) && (cm)) cm.style.display='none';cm=m}
</SCRIPT>

<table border=0>
<tr>
<td ID="d1" onmouseover="show(this,ds1);" class="menu">雜志技術(shù)站點</td>
<td ID="d2" onmouseover="show(this,ds2);" class="menu">門戶站點</td>
<td ID="d3" onmouseover="show(this,ds3);" class="menu">個人收藏站點</td>
</tr>
</table>

<DIV ID="ds1" CLASS="submenu" STYLE="display:none" onmouseleave="this.style.display='none'">
<BR><A >天極網(wǎng) Yesky.com</A>
<BR><A >電腦商情報</A>
<BR><A >新潮電子</A>
<BR>
</DIV>
<DIV ID="ds2" CLASS="submenu" STYLE="display:none" onmouseleave="this.style.display='none'">
<BR><A >新浪網(wǎng) Sina</A>
<BR><A >搜狐 Sohu</A>
<BR><A >網(wǎng)易 Netease</A>
<BR>
</DIV>
<DIV ID="ds3" CLASS="submenu" STYLE="display:none" onmouseleave="this.style.display='none'">
<BR><A >耗子網(wǎng)絡(luò)編程站</A>
<BR><A >中國同學(xué)錄</A>
<BR><A >中國軟件開發(fā)網(wǎng)</A>
<BR>
</DIV>
</body>
</html>

相關(guān)文章

最新評論

闵行区| 行唐县| 陇川县| 朝阳县| 璧山县| 普洱| 宁化县| 利川市| 彭州市| 甘孜| 抚顺县| 揭西县| 扶绥县| 马山县| 米易县| 恩平市| 柘荣县| 阳西县| 特克斯县| 诏安县| 唐山市| 香格里拉县| 深水埗区| 怀安县| 南澳县| 宁波市| 阿勒泰市| 安阳市| 定州市| 封丘县| 武清区| 张家界市| 平潭县| 新竹县| 临江市| 潞西市| 牙克石市| 保山市| 尚志市| 蓬溪县| 温泉县|