div+css+js下拉式功能表

來源:互聯網
上載者:User
 代碼如下 複製代碼

<!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>top</title>
<link href="images/header.css" type=text/css rel=stylesheet />
<script type=text/javascript>
<!--//--><![CDATA[//><!--
function menuFix() {
var sfEls = document.getElementById("nav").getElementsByTagName("li");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=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;
//--><!]]>
</script>
</head>
<body>
<div id=header>
<div class=header_logo>
<div class=header_nav>
<div class=global_nav>
  <div class="nav_main float_right">
<ul id="nav">
<li class="nav_tittle"><a class="nav_tittle" href="http://www.111cn.net/">首頁</a>
</li>
<li><a href="http://www.111cn.net">偶的部落格</a>
<ul>
<li><a href="http://www.111cn.net">拙口有語</a></li>
<li><a href="http://www.111cn.net">禿筆難言</a></li>
<li><a href="http://www.111cn.net">書山破履</a></li>
<li><a href="http://www.111cn.net">學海沉舟</a></li>
<li><a href="http://www.111cn.net">漏簍拾貝</a></li>
<li><a href="http://www.111cn.net">壁前思惑</a></li>
<li><a href="http://www.111cn.net">井口觀天</a></li>
</ul>
</li>
<li><a href="http://www.111cn.net/">網站導航</a>
<ul>
<li><a href="#">拙口有語</a></li>
<li><a href="#">禿筆難言</a></li>
</ul>
</li>
<li><a href="http://www.111cn.net">偶的部落格</a>
<ul>
<li><a href="http://www.111cn.net">拙口有語</a></li>
<li><a href="http://www.111cn.net">禿筆難言</a></li>
<li><a href="http://www.111cn.net">書山破履</a></li>
<li><a href="http://www.111cn.net">學海沉舟</a></li>
<li><a href="http://www.111cn.net">漏簍拾貝</a></li>
<li><a href="http://www.111cn.net">壁前思惑</a></li>
<li><a href="http://www.111cn.net">井口觀天</a></li>
</ul>
</li>
<li><a href="http://www.111cn.net/myjs/">指令碼收藏</a>
</li>
<li><a href="http://www.111cn.net/weather/">天氣預報</a>
</li>
<li><a href="http://">下載中心</a>
<ul>
<li><a href="http://www.111cn.net">儀器</a></li>
<li><a href="http://www.111cn.net">手機資料</a></li>
</ul>
</li>
</ul>
  </div>
<div class=clear_float><img alt="" src="images/space.gif"></div>
</div>
</div>
</div>
</div>
</body>
</html>

 

 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.