复制代码代码如下:
<html>
<kepala>
<gaya tipe="teks/css">
.menu
{
warna latar belakang:hijau;
lebar:120;
tinggi:20;
warna: putih;
perataan teks: tengah;
ukuran font:9pt;
font-weight:lebih tebal;
}
.submenu
{
posisi:mutlak;
atas:40;
warna latar belakang:
kuning; lebar: 180;
ukuran font:9pt;
}
</gaya>
</kepala>
<tubuh>
<SKRIP>
var cm=nol;
dokumen.onclick = Fungsi baru("show(null)")
fungsi getPos(el,sprop)
{var iPos = 0
sementara (el!=null)
{iPos+=el["offset" + sprop]
el = el.offsetParent}
kembalikan iPos}
tampilan fungsi(el,m)
{if (m) { m.style.display='';
m.style.pixelLeft = getPos(el,"Kiri")
m.style.pixelTop = getPos(el,"Atas") + el.offsetHeight}
if ((m!=cm) && (cm)) cm.style.display='tidak ada';cm=m}
</SKRIP>
<batas tabel=0>
<tr>
<td ID="d1" onmouseover="show(this,ds1);">杂志技术站点</td>
<td ID="d2" onmouseover="show(this,ds2);">门户站点</td>
<td ID="d3" onmouseover="show(this,ds3);">个人收藏站点</td>
</tr>
</tabel>
<DIV ID="ds1" CLASS="submenu" STYLE="display:none" onmouseleave="this.style.display='none'">
<BR><A HREF="http://www.yesky.com">天极网 Yesky.com</A>
<BR><A HREF="http://www.cbinews.com">电脑商情报</A>
<BR><A HREF="http://www.newsoft.com.cn">新潮电子</A>
<BR>
</DIV>
<DIV ID="ds2" CLASS="submenu" STYLE="display:none" onmouseleave="this.style.display='none'">
<BR><A HREF="http://www.sina.com.cn">新浪网 Sina</A>
<BR><A HREF="http://www.sohu.com.cn">搜狐 Sohu</A>
<BR><A HREF="http://www.163.com">Netease</A>
<BR>
</DIV>
<DIV ID="ds3" CLASS="submenu" STYLE="display:none" onmouseleave="this.style.display='none'">
<BR><A HREF="http://haoel.yeah.net">耗子网络编程站</A>
<BR><A HREF="http://www.5460.net">中国同学录</A>
<BR><A HREF="http://www.csdn.net">中国软件开发网</A>
<BR>
</DIV>
</tubuh>
</html>