|
√ Google adsense申请技巧 √ 本站核心代理域名注册主机业务
√ 快速发布你的买卖域名买卖网站信息
√ 1元注册 cn域名
√ 站长每日新闻导读 √ ·推荐万网空间¥120元 150m √ 站长网:站长必上的网站 √ 网站联盟大全 √ 本站代理万网域名55空间120元 |
<script>
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=="SPAN") {
node.onmouseover=function() {this.className+=" over";}
node.onmouseout=function() {this.className=this.className.replace(" over", "");}
}
}
}
}
window.onload=startList;
</script>
<style>
body {
font: normal 11px verdana;
}
div#nav{
border-left: 1px solid #ccc;
}
span {
margin: 0px;
padding: 0px;
list-style: none;
width: 120px; /* Width of Menu Items */
position: relative;
border: 1px solid #ccc;
border-left: 0px;
}
span div span {
border: 1px solid #ccc;
border-top: 0px;
}
span div {
position: absolute;
left: -1px;
top: 24px; /* Set 1px less than menu width */
display: none;
}
/* Styles for Menu Items */
div span a {
width: 100%;
text-decoration: none;
color: #777;
background: #fff; /* IE6 Bug */
padding: 5px;
}
div span a:hover { color: #E2144A; background: #f9f9f9; } /* Hover Styles */
span div span a { padding: 2px 5px; } /* Sub Menu Styles */
span:hover div, span.over div { display: inline; } /* The magic */
</style>
<div id="nav">
<span><a href="#">chinahtml</a>
<div>
</div>
</span>
<span><a href="#">About</a>
<div>
<span><a href="#">History</a></span>
<span><a href="#">Team</a></span>
<span><a href="#">Offices</a></span>
</div>
</span>
<span><a href="#">Services</a>
<div>
<span><a href="#">Web Design</a></span>
<span><a href="#">Internet Marketing</a></span>
<span><a href="#">Hosting</a></span>
<span><a href="#">Domain Names</a></span>
<span><a href="#">Broadband</a></span>
</div>
</span>
<span><a href="#">Contact Us</a>
<div>
<span><a href="#">United Kingdom</a></span>
<span><a href="#">France</a></span>
<span><a href="#">USA</a></span>
<span><a href="#">Austraspana</a></span>
</div>
</span>
</div>
友情提示:全选代码复制运行,您也可以先修改部分代码再运行