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

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

 更新時(shí)間:2013年12月29日 16:27:05   作者:  
本文為大家詳細(xì)介紹下使用javascript實(shí)現(xiàn)當(dāng)鼠標(biāo)移開時(shí)已彈出子菜單自動(dòng)消失,具體如下,感興趣的朋友不要錯(cuò)過
復(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ù)站點(diǎn)</td>
<td ID="d2" onmouseover="show(this,ds2);" class="menu">門戶站點(diǎn)</td>
<td ID="d3" onmouseover="show(this,ds3);" class="menu">個(gè)人收藏站點(diǎn)</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 >電腦商情報(bào)</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)文章

最新評論

砀山县| 阳春市| 互助| 南郑县| 麻栗坡县| 阳朔县| 遂溪县| 宣化县| 铅山县| 金沙县| 宽甸| 广德县| 涡阳县| 长春市| 原平市| 兰坪| 梅河口市| 图们市| 柞水县| 石渠县| 上饶县| 丰镇市| 彝良县| 堆龙德庆县| 齐齐哈尔市| 三河市| 壤塘县| 赤城县| 高州市| 旬阳县| 五大连池市| 肇庆市| 万源市| 彰武县| 即墨市| 遵义县| 锦州市| 全南县| 大埔县| 海兴县| 突泉县|