Posted in Javascript onAugust 13, 2013
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=gb2312" /> <title>鼠标经过显示二级菜单js特效</title> </head> <body> <a href="https://3water.com" onMouseover="showit(0)">三水点靠木</a> | <a href="http://play.3water.com" onMouseover="showit(1)">播放器之家</a><br> <div id="describe" style="width:600px;height:40px; margin-top:10px;" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div> <script language="JavaScript1.2"> var submenu=new Array() submenu[0]='<b><a href="https://3water.com/">三水点靠木</a> | <a href="http://play.3water.com">播放器之家</a> | <a href="http://sc.3water.com/">素材之家</a> | <a href="http://mingzi.3water.com/">个性名字网</a> | <a href="http://office.3water.com/">Office之家</a></b>' submenu[1]='<b><a href="https://3water.com/">三水点靠木</a> | <a href="http://play.3water.com">播放器之家</a> | <a href="http://sc.3water.com/">素材之家</a> | <a href="http://mingzi.3water.com/">个性名字网</a></b>' var delay_hide=500 var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : "" function showit(which){ clear_delayhide() thecontent=(which==-1)? "" : submenu[which] if (document.getElementById||document.all) menuobj.innerHTML=thecontent else if (document.layers){ menuobj.document.write(thecontent) menuobj.document.close() } } function resetit(e){ if (document.all&&!menuobj.contains(e.toElement)) delayhide=setTimeout("showit(-1)",delay_hide) else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)) delayhide=setTimeout("showit(-1)",delay_hide) } function clear_delayhide(){ if (window.delayhide) clearTimeout(delayhide) } function contains_ns6(a, b) { while (b.parentNode) if ((b = b.parentNode) == a) return true; return false; } </script> </body> </html></td> </tr> </table>
鼠标经过显示二级菜单js特效
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@