代码如下 | 复制代码 |
<!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>css二级下拉菜单</title> <link href="style/index.css" type="text/css" rel="stylesheet"> <script type=text/网页特效><!--//--><![cdata[//><!-- function menufix() { var sfels = document.getelementbyid("nav").getelementsbytagname("li"); for (var i=0; i<sfels.length; i++) { sfels[i].onmouseo教程ver=function() { this.classname+=(this.classname.length>0? " ": "") + "sfhover"; } sfels[i].onmousedown=function() { this.classname+=(this.classname.length>0? " ": "") + "sfhover"; } sfels[i].onmouseup=function() { this.classname+=(this.classname.length>0? " ": "") + "sfhover"; } sfels[i].onmouseout=function() { this.classname=this.classname.replace(new regexp("( ?|^)sfhover\b"), ""); } } } window.onload=menufix; //more javascript from http:// //--><!]]></script> </head> <li class="bot01"></li> |
源码下载地址
http://down.111cn.net/js/css/2010/0928/20963.html
效果预览地址
http://g.111cn.net/javascript/code/20100927/css1/