62,074
社区成员
发帖
与我相关
我的任务
分享
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>nav</title>
<script type="text/javascript" language="javascript">
// JavaScript Document
startList = function()
{
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++)
{
node = navRoot.childNodes[i];
if (node.nodeName=="LI")
{
node.onmouseover=function()
{
if(this.children[1]!=null){
this.children[1].style.top=this.offsetTop+"px";
this.children[1].style.display="block";
}
}
node.onmouseout=function()
{
if(this.children[1]!=null)
this.children[1].style.display="none";
}
}
}
}
window.onload=startList;
</script>
<style type="text/css">
<!--
body {
font: normal 11px verdana;
}
ul {
margin: 0;
padding: 0;
list-style: none;
width: 300px; /* 菜单的宽度 */
border: 1px solid #ccc;
border-bottom:0;
position:relative;
background:#ffffff;
}
/* Styles for Menu Items */
ul li a{
display: block;
text-decoration: none;
color: #777;
background: #fff; /* IE6 Bug */
padding: 10px;
}
li{border-bottom: 1px solid #ccc;}
li .sonul {
position:absolute;
left: 250px; /* 二级菜单的距离 */
display: none;
z-index:999;
line-height:15px;
}
-->
</style>
</head>
<body>
<ul id="nav">
<li><a href="#">主页</a></li>
<li><a href="#">系统应用</a>
<ul class="sonul">
<li><a href="#">网上报修</a></li>
<li><a href="#">在线报餐</a></li>
<li><a href="#">会议室预约</a></li>
</ul>
</li>
<li><a href="#">Services</a>
<ul class="sonul">
<li><a href="#">Web Design</a></li>
<li><a href="#">Internet Marketing</a></li>
<li><a href="#">Hosting</a></li>
<li><a href="#">Domain Names</a></li>
<li><a href="#">Broadband</a></li>
</ul>
</li>
<li><a href="#">Contact Us</a>
<ul class="sonul">
<li><a href="#">United Kingdom</a></li>
<li><a href="#">France</a></li>
<li><a href="#">USA</a></li>
<li><a href="#">Australia</a></li>
</ul>
</li>
</ul>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>nav</title>
<script type="text/javascript" language="javascript">
// JavaScript Document
startList = function()
{
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++)
{
node = navRoot.childNodes[i];
if (node.nodeName=="LI")
{
node.onmouseover=function()
{
if(this.children[1]!=null){
this.children[1].style.top=this.offsetTop+"px";
this.children[1].style.display="block";
}
}
node.onmouseout=function()
{
if(this.children[1]!=null)
this.children[1].style.display="none";
}
}
}
}
window.onload=startList;
</script>
<style type="text/css">
<!--
body {
font: normal 11px verdana;
}
ul {
margin: 0;
padding: 0;
list-style: none;
width: 300px; /* 菜单的宽度 */
border: 1px solid #ccc;
border-bottom:0;
position:relative;
background:#ffffff;
}
/* Styles for Menu Items */
ul li{
display: block;
text-decoration: none;
color: #777;
background: #fff; /* IE6 Bug */
padding: 10px;
}
li{border-bottom: 1px solid #ccc;}
li .sonul {
position:absolute;
left: 250px; /* 二级菜单的距离 */
display: none;
z-index:999;
line-height:15px;
}
-->
</style>
</head>
<body>
<ul id="nav">
<li><a href="#">主页</a></li>
<li><a href="#">系统应用</a>
<ul class="sonul">
<li><a href="#">网上报修</a></li>
<li><a href="#">在线报餐</a></li>
<li><a href="#">会议室预约</a></li>
</ul>
</li>
<li><a href="#">Services</a>
<ul class="sonul">
<li><a href="#">Web Design</a></li>
<li><a href="#">Internet Marketing</a></li>
<li><a href="#">Hosting</a></li>
<li><a href="#">Domain Names</a></li>
<li><a href="#">Broadband</a></li>
</ul>
</li>
<li><a href="#">Contact Us</a>
<ul class="sonul">
<li><a href="#">United Kingdom</a></li>
<li><a href="#">France</a></li>
<li><a href="#">USA</a></li>
<li><a href="#">Australia</a></li>
</ul>
</li>
</ul>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>nav</title>
<script type="text/javascript" language="javascript">
// JavaScript Document
startList = function()
{
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++)
{
node = navRoot.childNodes[i];
if (node.nodeName=="LI")
{
node.onmouseover=function()
{
if(this.children[1]!=null){
this.children[1].style.top=this.offsetTop+"px";
this.children[1].style.display="block";
}
}
node.onmouseout=function()
{
if(this.children[1]!=null)
this.children[1].style.display="none";
}
}
}
}
window.onload=startList;
</script>
<style type="text/css">
<!--
body {
font: normal 11px verdana;
}
ul {
margin: 0;
padding: 0;
list-style: none;
width: 300px; /* 菜单的宽度 */
border: 1px solid #ccc;
border-bottom:0;
position:relative;
}
li{border-bottom: 1px solid #ccc;}
li .sonul {
position:absolute;
left: 250px; /* 二级菜单的距离 */
display: none;
z-index:2;
}
/* Styles for Menu Items */
ul li a {
display: block;
text-decoration: none;
color: #777;
background: #fff; /* IE6 Bug */
padding: 10px;
}
-->
</style>
</head>
<body>
<ul id="nav">
<li><a href="#">主页</a></li>
<li><a href="#">系统应用</a>
<ul class="sonul">
<li><a href="#">网上报修</a></li>
<li><a href="#">在线报餐</a></li>
<li><a href="#">会议室预约</a></li>
</ul>
</li>
<li><a href="#">Services</a>
<ul class="sonul">
<li><a href="#">Web Design</a></li>
<li><a href="#">Internet Marketing</a></li>
<li><a href="#">Hosting</a></li>
<li><a href="#">Domain Names</a></li>
<li><a href="#">Broadband</a></li>
</ul>
</li>
<li><a href="#">Contact Us</a>
<ul class="sonul">
<li><a href="#">United Kingdom</a></li>
<li><a href="#">France</a></li>
<li><a href="#">USA</a></li>
<li><a href="#">Australia</a></li>
</ul>
</li>
</ul>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>nav</title>
<script type="text/javascript" language="javascript">
// JavaScript Document
startList = function()
{
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++)
{
node = navRoot.childNodes[i];
if (node.nodeName=="LI")
{
node.onmouseover=function()
{
if(this.children[1]!=null){
this.children[1].style.top=this.offsetTop+"px";
this.children[1].style.display="block";
}
}
node.onmouseout=function()
{
if(this.children[1]!=null)
this.children[1].style.display="none";
}
}
}
}
window.onload=startList;
</script>
<style type="text/css">
<!--
body {
font: normal 11px verdana;
}
ul {
margin: 0;
padding: 0;
list-style: none;
width: 300px; /* 菜单的宽度 */
border-bottom: 1px solid #ccc;
position:relative;
}
li{border-bottom: 1px solid #ccc;}
li .sonul {
position:absolute;
left: 250px; /* 二级菜单的距离 */
display: none;
z-index:2;
}
/* Styles for Menu Items */
ul li a {
display: block;
text-decoration: none;
color: #777;
background: #fff; /* IE6 Bug */
padding: 10px;
border: 2px solid #ccc; /* IE6 Bug */
border-bottom: 0;
}
-->
</style>
</head>
<body>
<ul id="nav">
<li><a href="#">主页</a></li>
<li><a href="#">系统应用</a>
<ul class="sonul">
<li><a href="#">网上报修</a></li>
<li><a href="#">在线报餐</a></li>
<li><a href="#">会议室预约</a></li>
</ul>
</li>
<li><a href="#">Services</a>
<ul class="sonul">
<li><a href="#">Web Design</a></li>
<li><a href="#">Internet Marketing</a></li>
<li><a href="#">Hosting</a></li>
<li><a href="#">Domain Names</a></li>
<li><a href="#">Broadband</a></li>
</ul>
</li>
<li><a href="#">Contact Us</a>
<ul class="sonul">
<li><a href="#">United Kingdom</a></li>
<li><a href="#">France</a></li>
<li><a href="#">USA</a></li>
<li><a href="#">Australia</a></li>
</ul>
</li>
</ul>
</body>
</html>