Português
<style type="text/css"> .anylinkcss{ posição:absolute; visibilidade: oculta; borda: 1px preto sólido; largura inferior da borda: 0; fonte:normal 12px Verdana; altura da linha: 18px; índice z: 100; cor de fundo: #E9FECB; largura: 205px; } .anylinkcss a{largura: 100%; exibição: bloco; recuo do texto: 3px; borda inferior: 1px preto sólido; preenchimento: 1px 0; decoração de texto: nenhuma; peso da fonte: negrito; recuo do texto: 5px; } .anylinkcss a:hover{ /*cor de fundo do foco*/ cor de fundo: preto; cor: branco; } </style> <script language="javascript"> //mais javascript de http://www.downcodes.com var desaparecedelay=250 //velocidade de desaparecimento do menu onMouseout (em milissegundos) var enableanchorlink=0 //Ativa ou desativa o link âncora quando clicado? (1=e, 0=d) var hidemenu_onclick=1 //ocultar menu quando o usuário clica dentro do menu? (1=sim, 0=não) /////Nenhuma edição adicional necessária var ie5=document.all var ns6=document.getElementById&&!document.all function getposOffset(what, offsettype){ var totaloffset=(offsettype==" esquerda")? o que.offsetLeft : o que.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent; } retornar deslocamento total; } function showhide(obj, e, visível, oculto){ if (ie5||ns6) dropmenuobj.style.left=dropmenuobj.style.top=-500 if (e.type=="click" && obj.visibility== oculto || e.type=="mouseover") obj.visibility=visible else if (e.type=="click") obj.visibility=hidden } function iecompattest(){ return (document.compatMode && document.compatMode! ="BackCompat")? document.documentElement : document.body } function clearbrowseredge(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-dropmenuobj.x <dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.contentmeasure-obj. offsetWidth } else{ var windowedge=ie5 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15: window.pageYOffset+window.innerHeight-18 dropmenuobj.contentmeasure=dropmenuobj.offsetHeight if (windowedge-dropmenuobj.y <dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.contentmeasure+obj. offsetHeight } return edgeoffset } function dropdownmenu(obj, e, dropmenuID){ if (window.event) event.cancelBubble=true else if (e.stopPropagation) e.stopPropagation() if (typeof dropmenuobj!="undefined") // ocultar menu anterior dropmenuobj.style.visibility="hidden" clearhidemenu() if (ie5||ns6){ obj.onmouseout=delayhidemenu dropmenuobj=document.getElementById(dropmenuID) if (hidemenu_onclick) dropmenuobj.onclick=function(){dropmenuobj. style.visibility='oculto'} 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. y=getposOffset(obj, "topo") dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "borda direita")+"px" dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge") +obj.offsetHeight+"px" } return clickreturnvalue() } function clickreturnvalue(){ if ((ie5||ns6) && !enableanchorlink) return false else return true } function contains_ns6(a, b) { while (b.parentNode) if ((b = b.parentNode) == a) retornar verdadeiro; retornar falso; } function dynamichide(e){ if (ie5&&!dropmenuobj.contains(e.toElement)) delayhidemenu() else if (ns6&&e.currentTarget!= e. RelatedTarget&& !contains_ns6(e.currentTarget, e. RelatedTarget)) delayhidemenu() } function delayhidemenu(){ delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay) } function clearhidemenu(){ if (typeof delayhide!="indefinido") 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="largura: 150px; cor de fundo: amarelo claro"> <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>