Js-菜单
<style type="text/css">
<!--
*{
margin:0;
padding:0;
}
body {
font-family: arial, 宋体, serif;
font-size:12px;
}
#nav {
line-height: 30px; list-style-type: none; background:#666; color:#FFFFFF
}
#nav a {
display: block; width: 80px; text-align:center; color:#FFFFFF
}
#nav a:link {
color:#666; text-decoration:none; color:#FFFFFF
}
#nav a:visited {
color:#666;text-decoration:none; color:#FFFFFF
}
#nav a:hover {
text-decoration:none;font-weight:bold; color:#FFFFFF
}
#nav li {
float: left; width: 80px; background-image:url(Images/bg_menu.gif); color:#FFFFFF; height:30px
}
#nav li a:hover{
background:#999; color:#FFFFFF
}
#nav li ul {
line-height: 20px; list-style-type: none;text-align:left;
left: -999em; width: 100px; position: absolute;
}
#nav li ul li{
float: left; width: 100px; height:29px
}
#nav li ul a{
display: block; width: 85px;text-align:left;padding-left:24px; background-image:url(Images/3.gif); line-height:29PX
}
#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 {
text-decoration:none;font-weight:normal;
background-image:url(Images/3.gif)
}
#nav li:hover ul {
left: auto;
}
#nav li.sfhover ul {
left: auto;
}
-->
</style>
//添加鼠标事件
<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>
<table width="833" border="0" align="center" cellpadding="0" cellspacing="0" background="Images/bg_menu.gif">
<tr>
<td>
<ul id="nav">
<li><a href="Default.aspx">首页</a>
<li><a href="#">企业简介</a>
<ul>
<li><a href="About.aspx">公司简介</a></li>
<li><a href="Culture.aspx">公司文化</a></li>
<li><a href="Structure.aspx">组织机构</a></li>
<li><a href="History.aspx">成长历程</a></li>
</ul>
</li>
<li><a href="Product.aspx">产品介绍</a>
<ul>
<li><a href="Product.aspx">产品展示</a></li>
<li><a href="Product.aspx">产品分类</a></li>
</ul>
</li>
<li><a href="#">服务介绍</a>
<ul>
<li><a href="#">服务二</a></li>
<li><a href="#">服务二</a></li>
<li><a href="#">服务二</a></li>
<li><a href="#">服务二服务二</a></li>
<li><a href="#">服务二服务二服务二</a></li>
<li><a href="#">服务二</a></li>
</ul>
</li>
<li><a href="#">成功案例</a>
<ul>
<li><a href="#">案例三</a></li>
<li><a href="#">案例</a></li>
<li><a href="#">案例三案例三</a></li>
<li><a href="#">案例三案例三案例三</a></li>
</ul>
</li>
<li><a href="#">关于我们</a>
<ul>
<li><a href="#">我们四</a></li>
<li><a href="#">我们四</a></li>
<li><a href="#">我们四</a></li>
<li><a href="#">我们四111</a></li>
</ul>
</li>
<li><a href="Job.aspx">人才招聘 </a>
<ul>
<li><a href="#">人才招聘 </a></li>
</ul>
</li>
<li><a href="Server.aspx">客户服务</a>
<ul>
<li><a href="Server.aspx">会员中心</a></li>
<li><a href="NetBook.aspx">留言中心</a></li>
</ul>
</li> <li><a href="#">论坛</a>
<ul>
</ul>
</li>
<li><a href="Contact.aspx">联系我们</a></li>
</ul></td>
</tr>
</table>