<!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>下拉及多级弹出式菜单</title>
<script type="text/javascript">
startList = function() {
 if (document.all&&document.getElementById) {
  navRoot = document.getElementById("nav");
  for (i=0; i<navRoot.childNodes.length; i++) {
   node = navRoot.childNodes[i];
   if (node.nodeName=="LI") {
    node.onmouseover=function() {
     this.className+=" over";
    }
    node.onmouseout=function() {
     this.className=this.className.replace(" over", "");
    }
   }
  }
 }
}
window.onload=startList;
</script>
<style>
ul { padding:0; margin:0; list-style:none;}
li { float:left; width:100px;}
ul li a {
 display:block;
 font-size:12px;
 border:1px solid #ccc;
 margin-top:2px;
 margin-left:3px;
 padding:3px;
 text-decoration:none;
 color:#777;
}
ul li a:hover { background-color:#ddd;}
li ul { display:none;}
li:hover ul,li.over ul { display:block;}
</style>
</head>

<body>
<ul >电影原声</a></li>
</ul>
</body>
</html>

相关文章:

  • 2022-12-23
  • 2021-11-03
  • 2021-12-12
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
猜你喜欢
  • 2021-06-30
  • 2021-12-12
  • 2021-12-17
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2021-12-12
相关资源
相似解决方案