|
发表于 11-2-2006 12:03 AM
|
显示全部楼层
既然佳礼有此功能,那你直接抄佳礼的source code就行了呀,方法如下:
1) IE -> view -> source code
2) 从
<script type="text/javascript">
/***********************************************
* AnyLink Drop Down Menu- ? Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
抄到function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu
</script>
3) 抄<style type="text/css">
a {text-decoration:none}
#dropmenudiv{
position:absolute;
border:1px solid #3C8AFF;
font:normal 14px Simsun;
line-height:18px;
z-index:100;
}
#dropmenudiv a{
width: 100%;
display: block;
text-indent: 1px;
padding-top: 1px;
}
#dropmenudiv a:hover{ /*hover background color*/
background-color: #dbedfe;
}
</style>
4)<table width=760 border=0><tr><td valign=center><font style="font-family: simsun,arial; font-size: 11pt"><a href=/myforum/>论坛</a>:</td><td align=left>
<font style="font-family: simsun,arial; font-size: 11pt">
<a href="/myforum/index.php?gid=2" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">政经文教</a>
<a href="/myforum/index.php?gid=58" onMouseover="dropdownmenu(this, event, menu2, '150px')" onMouseout="delayhidemenu()">地方州属</a>
</td></tr></table>
5) 然后改一改就可以用了 |
|