中文(繁体)
<style type="text/css"> .anylinkcss{ 位置:絕對;可見性:隱藏;邊框:1px純黑;邊框底部寬度:0;字型:普通 12px Verdana;行高:18px; z 索引:100;背景顏色:#E9FECB;寬度:205px; } .anylinkcss a{ 寬度: 100%;顯示:塊;文字縮排:3px;底部邊框:1px 純黑色;內邊距:1px 0;文字裝飾:無;字體粗細:粗體;文字縮排:5px; } .anylinkcss a:hover{ /*懸停背景顏色*/ background-color: black;顏色: 白色; } </style> <script language="javascript"> //來自http://www.downcodes.com的更多javascript var gonedelay=250 //Mouseout時菜單消失速度(以毫秒為單位) var enableanchorlink=0 //啟用或停用點擊時的錨連結? (1=e, 0=d) var hidemenu_onclick=1 //當使用者在選單中點選時隱藏選單? (1=是, 0=否) /////無需進一步編輯 var ie5=document.all var ns6=document.getElementById&&!document.all function getposOffset(what, offsettype){ var Totaloffset=(offsettype=="左邊”)?什麼.offsetLeft : 什麼.offsetTop; varparentEl=what.offsetParent; while (parentEl!=null){ Totaloffset=(offsettype=="left")?總偏移量+parentEl.offsetLeft : 總偏移量+parentEl.offsetTop; ParentEl=parentEl.offsetParent;返回總偏移量; } function showhide(obj, e,visible,hidden){ if (ie5||ns6) dropmenuobj.style.left=dropmenuobj.style.top=-500 if (e.type=="click" && obj.visibility==隱藏|| e.type=="mouseover") obj.visibility=visible else if (e.type=="click") obj.visibility=hidden } function iecompattest(){ return (document.compatMode && document.compatMode! =“後相容”)? document.documentElement : document.body } functionclearbrowseredge(obj,whichedge){ var edgeoffset=0 if (whichedge=="rightedge"){ var windowedge=ie5 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15 dropmenuobj.contentmeasure=dropmenuobj.offsetWidth if (windowedge-dropmenu.dropmenuobj.offsetWidth if (windowedge-dropmenu. j。 offsetWidth } else{ var windowedge=ie5 && !window.opera? iecom offsetHeight } return edgeoffset } function dropdownmenu(obj, e, dropmenuID){ if (window.event) event.cancelBubble=true else if (e.stopPropagation) e.stopPropagation() if (typeof ="dropmenu)!隱藏上一個選單dropmenuobj.style.visibility="hidden"clearhidemenu() if (ie5||ns6){ obj.onmouseout=delayhidemenu dropmenuobj=document.getElementById(dropmenuID) if (hopmenuobj=document.getElementById(dropmenuID) if (hmenuopnclicku. . style.visibility='隱藏'} dropmenuobj.onmouseover=clearhidemenu dropmenuobj.onmouseout=ie5? function(){dynamichide(event)} : function(event){dynamichide(event)} showhide(dropmenuobj.style, e, "visible", "hidden") dropmenuobj.x=getposOffset(obj, "left") dropmenuobj.ffset(obj, "left") dropmenuobj.ffset(obj, "left") dropmenuobj.ffset(obj, "left") dropmenuobj. y=getposOffset(obj, "頂部") dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "右邊緣")+"px" dropmenuobj.style.top=dropmenuobj.y-clearbrowedge(obj,obj.style.top=dropmenuobj.y-clearbrowedge(obj,"serser ") +obj.offsetHeight+"px" } return clickreturnvalue() } function clickreturnvalue(){ if ((ie5||ns6) && !enableanchorlink) return false else return true } function contains_ns6(a, b. parentNode) if ((b = b.parentNode) == a) 回傳 true;返回假; } 函數dynamichide(e){ if (ie5&&!dropmenuobj.contains(e.toElement))delayhidemenu() else if (ns6&&e.currentTarget!= e.latedTarget&& !contains_ns6(e.currentTarget, e.latedTarget)4Day.函數delayhidemenu(){delayhide = setTimeout(“dropmenuobj.style.visibility ='hidden'”,disappeardelay)}函數clearhidemenu(){if(typeofdelayhide!=“未定義”)clearTimeout(delayhide)}</script> <! --第一個連結與選單--> <a href="http://www.downcodes.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')">網頁效果</a> <div id="anylinkmenu1" class="anylinkcss"> <a href="http://www.downcodes.com">圖形圖像</a> <a href="http://www .downcodes.com">滑鼠事件</a> <a href="http://www.downcodes.com">時間日期</a> <a href="http://www.downcodes.com">導航選單</a> <a href="http://www.downcodes.com">表單填寫</a> <a href="http://www.downcodes.com">表單按鈕</a> > <a href="http://www.downcodes.com">特殊腳本</a> <a href="http://www.downcodes.com">遊戲娛樂</a> </div> < !-- 第二個連結與選單--> <a href="http://www.downcodes.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu2')">網路學院</a> <div id="anylinkmenu2" class="anylinkcss" style="width: 150px; background-color: lightyellow"> <a href="http://www.downcodes.com">網頁製作</a> <a href="http://www.downcodes.com">網頁程式設計</a > <a href="http://www.downcodes.com">圖形圖像</a> <a href="http://www.downcodes.com">多媒體製作</a> <a href=" http://www.downcodes.com">網站建置</a> <a href="http://www.downcodes.com">網路</a> </div>