<ul id="nav">
<li><a href="index.htm#"><img src="images/zhu.gif" alt=""></a>
<ul>
<li style="background:url(images/jiao.jpg) no-repeat; padding-top:3px;"><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>
<li style="background:url(images/didi.jpg) no-repeat;padding-bottom:3px;"><a href="#">银饰</a></li>
</ul></li>
<li><img src="images/yu.gif" alt="" name="image1" width="59" height="20" border="0" id="image1">
<ul>
<li style="background:url(images/jiao.jpg) no-repeat;padding-top:3px;"><a href="#">钻石</a></li>
<li><a href="#">翡翠美玉</span></a></li>
<li><a href="#">珍珠</span></a></li>
<li style="background:url(images/didi.jpg) no-repeat;padding-bottom:3px;"><a href="#">彩色宝石</a></li>
</ul>
</li>
<li><img src="images/shou.gif" alt="" width="61" height="19">
<ul>
<li style="background:url(images/jiao.jpg) no-repeat;padding-top:3px;"><a href="#">彩色宝石</a></li>
<li><a href="#">名贵宝石</span></a></li>
<li style="background:url(images/didi.jpg) no-repeat;padding-bottom:3px"><a href="#">素金</a></li>
</ul></li>
<li><img src="images/li.gif" alt="" width="87" height="20">
<ul>
<li style="background:url(images/jiao.jpg) no-repeat;padding-top:3px;"><a href="#">珍珠</a></li>
<li><a href="#">彩色宝石</span></a></li>
<li><a href="#">名贵宝石</span></a></li>
<li style="background:url(images/didi.jpg) no-repeat;padding-bottom:3px;"><a href="#">素金</a></li>
</ul></li>
<li><img src="images/fu.gif" alt="" width="58" height="18">
<ul>
<li style="background:url(images/jiao.jpg) no-repeat;padding-top:3px;"><a href="#">珍珠</a></li>
<li><a href="#">彩色宝石</span></a></li>
<li><a href="#">名贵宝石</span></a></li>
<li style="background:url(images/didi.jpg) no-repeat;padding-bottom:3px;"><a href="#">素金</a></li>
</ul></li>
<li><img src="images/dianm.gif" alt="" width="88" height="17">
<ul>
<li style="background:url(images/jiao.jpg) no-repeat;padding-top:3px;"><a href="#">名贵宝石</a></li>
<li style="background:url(images/didi.jpg) no-repeat;padding-bottom:3px;"><a href="#">素金</a></li>
</ul></li>
<li><img src="images/ju.gif" alt="" name="image2" width="89" height="19" border="0" id="image2">
<ul>
<li style="background:url(images/jiao.jpg) no-repeat;padding-top:3px;"><a href="#">名贵宝石</a></li>
<li style="background:url(images/didi.jpg) no-repeat;padding-bottom:3px;"><a href="#">素金</a></li>
</ul>
</li><li><img src="images/jian.gif" alt="" width="94" height="16">
<ul>
<li style="background:url(images/jiao.jpg) no-repeat;padding-top:3px;"><a href="#">名贵宝石</a></li>
<li style="background:url(images/didi.jpg) no-repeat;padding-bottom:3px;"><a href="#">素金</a></li>
</ul></li>
</ul>
menu.css
*{margin:0;padding:0;border:0;}
body {
font-family: arial, 宋体, serif;
font-size:12px;
}
#nav {
list-style-type: none;
margin-top:40px;
margin-left:5px;
width:152px;
}
#nav li {
float: none;
margin-bottom:12px;
padding-left:0px;
}
#nav li ul {
list-style-type: none;
width:78px;
text-align:left;
margin:0px;
left: -999em;
position: absolute;
padding:0px;
}
#nav li ul li{
width: 78px;
height:19px;
line-height:19px;
margin:0px;
padding:0px;
background:url(images/di.jpg) repeat-y;
}
#nav a
{
font-size:12px;
}
#nav li ul a{
display: block;
width: 75px;
text-align:left;
padding-left:16px;
}
#nav li ul a:link {
color:#727375;
text-decoration:none;
}
#nav li ul a:visited {
color:#727375;
text-decoration:none;
}
#nav li ul a:hover {
color:#727375;
text-decoration:none;
font-weight:normal;
}
#nav li:hover ul {
left: auto;
}
#nav li.sfhover ul {
left: auto;
}
#content {
clear: left;
}
<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"),"");
}
}
}
window.onload=menuFix;
//--><!]]>
</script>