<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>js菜单演示_怎么使用js_js下拉菜单_简单js下拉菜单_怎么做js下拉菜单</title>
<style type="text/css">
*{margin:0;padding:0;border:0;}
body {font-family: arial, 宋体, serif;font-size:12px;}
#nav {line-height: 24px; list-style-type: none; background:#666;}
#nav a {display: block; width: 80px; text-align:center;}
#nav a:link {color:#666; text-decoration:none;}
#nav a:visited {color:#666;text-decoration:none;}
#nav a:hover {color:#FFF;text-decoration:none;font-weight:bold;}
#nav li {float: left; width: 80px; background:#CCC;}
#nav li a:hover{background:#999;}
#nav li ul {line-height: 27px; list-style-type: none;text-align:left;left: -999em; width: 180px; position: absolute;}
#nav li ul li{float: left; width: 120px;background: #F6F6F6;}
#nav li ul a{display: block; width: 100px;text-align:left;padding-left:20px;}
#nav li ul a:link {color:#666; text-decoration:none;}
#nav li ul a:visited {color:#666;text-decoration:none;}
#nav li ul a:hover {color:#F3F3F3;text-decoration:none;font-weight:normal;background:#C00;}
#nav li:hover ul {left: auto;}
#nav li.onhover ul {left: auto;}
#content {clear: left;}</style>
<script type="text/javascript">
function menu() {
var oLi = document.getElementById("nav").getElementsByTagName("li");
for (var i=0; i<oLi.length; i++) {
oLi[i].onmouseover=function() {
this.className+=(this.className.length>0? " ": "") + "onhover";}
oLi[i].onMouseDown=function() {this.className+=(this.className.length>0? " ": "") + "onhover";}
oLi[i].onMouseUp=function() {this.className+=(this.className.length>0? " ": "") + "onhover";}
oLi[i].onmouseout=function() {this.className=this.className.replace(new RegExp("( ?|^)onhoverb"),"");}}}
window.onload=menu;
</script></head>
<body>
<ul id="nav">
<li><a href="http://jingyan.baidu.com/article/fc07f98917a56f12ffe5198a.html" target="_blank" >动漫之家</a>
<ul>
<li>
<a href="http://jingyan.baidu.com/article/363872ecedf4486e4ba16f92.html"? target="_blank" >下拉一</a></li>
<li><a href="http://jingyan.baidu.com/article/363872ecedf4486e4ba16f92.html"? target="_blank" >下拉二</a></li>
<li><a href="http://jingyan.baidu.com/article/363872ecedf4486e4ba16f92.html"? target="_blank" >下拉三</a></li>
<li><a href="http://jingyan.baidu.com/article/363872ecedf4486e4ba16f92.html"? target="_blank" >下拉四</a></li>
</ul></li><li><a href="http://jingyan.baidu.com/article/e73e26c0cfa01724adb6a795.html" target="_blank" >js详解</a><ul>
怎么使用js下拉菜单__简单js下拉菜单_js下拉菜单
<li><a href="http://jingyan.baidu.com/article/e73e26c0cfa01724adb6a795.html"? target="_blank" >下拉一</a></li>
<li><a href="http://jingyan.baidu.com/article/e73e26c0cfa01724adb6a795.html" target="_blank"? >下拉二</a></li>
<li><a href="http://jingyan.baidu.com/article/e73e26c0cfa01724adb6a795.html" target="_blank"? >下拉三</a></li>
<li><a href="http://jingyan.baidu.com/article/e73e26c0cfa01724adb6a795.html" target="_blank"? >下拉四</a></li></ul></li>
<li><a href="http://jingyan.baidu.com/article/08b6a591f09cfc14a8092293.html" target="_blank" >js运用</a>
<ul><li><a href="http://jingyan.baidu.com/article/08b6a591f09cfc14a8092293.html"? target="_blank" >下拉一</a></li>
<li><a href="http://jingyan.baidu.com/article/08b6a591f09cfc14a8092293.html"? target="_blank" >下拉二</a></li>
<li><a href="http://jingyan.baidu.com/article/08b6a591f09cfc14a8092293.html"? target="_blank" >下拉三</a></li>
<li><a href="http://jingyan.baidu.com/article/08b6a591f09cfc14a8092293.html" target="_blank"? >下拉四</a></li></ul></li>
<li><a href="http://jingyan.baidu.com/article/363872ecedf4486e4ba16f92.html"? target="_blank" >关于我们</a>
<ul><li><a href="http://jingyan.baidu.com/article/363872ecedf4486e4ba16f92.html" target="_blank"? >下拉一</a></li>
<li><a href="http://jingyan.baidu.com/article/363872ecedf4486e4ba16f92.html"? target="_blank" >下拉二</a></li>
<li><a href="http://jingyan.baidu.com/article/363872ecedf4486e4ba16f92.html"? target="_blank" >下拉三</a></li>
<li><a href="http://jingyan.baidu.com/article/363872ecedf4486e4ba16f92.html"? target="_blank" >下拉四</a></li>
</ul></li><li><a href="http://jingyan.baidu.com/article/cdddd41c5e873153cb00e193.html"? target="_blank" >js在线演示</a>
<ul><li><a href="http://jingyan.baidu.com/article/cdddd41c5e873153cb00e193.html"? target="_blank" >下拉一</a></li>
<li><a href="http://jingyan.baidu.com/article/cdddd41c5e873153cb00e193.html"? target="_blank" >下拉二</a></li>
<li><a href="http://jingyan.baidu.com/article/cdddd41c5e873153cb00e193.html"? target="_blank" >下拉三</a></li>
<li><a href="http://jingyan.baidu.com/article/cdddd41c5e873153cb00e193.html"? target="_blank" >下拉四</a></li></ul></li>
<li><a href="http://jingyan.baidu.com/article/76a7e409bb3c33fc3b6e1593.html"? target="_blank" >联系我们</a>
<ul><li><a href="http://jingyan.baidu.com/article/76a7e409bb3c33fc3b6e1593.html"? target="_blank" >下拉一</a></li>
怎么使用js下拉菜单__简单js下拉菜单_js下拉菜单
<li><a href="http://jingyan.baidu.com/article/76a7e409bb3c33fc3b6e1593.html"? target="_blank" >下拉二</a></li>
<li><a href="http://jingyan.baidu.com/article/76a7e409bb3c33fc3b6e1593.html"? target="_blank" >下拉三</a></li>
<li><a href="http://jingyan.baidu.com/article/76a7e409bb3c33fc3b6e1593.html"? target="_blank" >下拉四</a></li></li></ul>
</body>
</html>