Code and brief analysis:
<Style type = "text/CSS">
<! --
# NV * {margin: 0; padding: 0; Border: 0 ;}
# NV {
Line-Height: 24px; List-style-type: none; Background: #666;
}
# Nv {
Display: block; width: 80px; text-align: center;
}
# Nv a: link {
Color: #666; text-Decoration: none;
}
# Nv a: visited {
Color: #666; text-Decoration: none;
}
# Nv a: hover {
Color: # FFF; text-Decoration: none; font-weight: bold;
}
# NV Li {
Float: Left; width: 80px; Background: # CCC;
}
# NV Li A: hover {
Background: #999;
}
# NV Li ul {
Line-Height: 27px; List-style-type: none; text-align: left;
Left:-999em; width: 980px; position: absolute; float: left;
}
# NV Li ul Li {
Float: Left; width: 80px;
Background: # f6f6f6;
}
# NV Li ul {
Display: block; width: 80px; text-align: center;
}
# NV Li ul a: link {
Color: #666; text-Decoration: none;
}
# NV Li ul a: visited {
Color: #666; text-Decoration: none;
}
# NV Li ul a: hover {
Color: # f3f3f3; text-Decoration: none; font-weight: normal;
Background: # c00;
}
# NV Li: hover ul {
Left: 0;
}
# NV Li. sfhover ul {
Left: 0;
}
# Content {
Clear: left;
}
-->
</Style>
<SCRIPT type = text/JavaScript> <! -- // --> <! [CDATA [//> <! --
Function menufix (){
VaR sfels = Document. getelementbyid ("NV"). 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>
</Head>
<Body>
<Ul id = "NV">
<Li> <a href = "#"> product introduction </a>
<Ul>
<Li> <a href = "#"> product 1 </a> </LI>
<Li> <a href = "#"> product 1 </a> </LI>
<Li> <a href = "#"> product 1 </a> </LI>
<Li> <a href = "#"> product 1 </a> </LI>
<Li> <a href = "#"> product 1 </a> </LI>
<Li> <a href = "#"> product 1 </a> </LI>
</Ul>
</LI>
<Li> <a href = "#"> service Introduction </a>
<Ul>
<Li> <a href = "#"> Service 2 </a> </LI>
<Li> <a href = "#"> Service 2 </a> </LI>
<Li> <a href = "#"> Service 2 </a> </LI>
<Li> <a href = "#"> Service 2 </a> </LI>
<Li> <a href = "#"> Service 2 </a> </LI>
<Li> <a href = "#"> Service 2 </a> </LI>
</Ul>
</LI>
<Li> <a href = "#"> success stories </a>
<Ul>
<Li> <a href = "#"> case 3 </a> </LI>
<Li> <a href = "#"> case </a> </LI>
<Li> <a href = "#"> case 3 </a> </LI>
<Li> <a href = "#"> case 3 </a> </LI>
</Ul>
</LI>
<Li> <a href = "#"> about us </a>
<Ul>
<Li> <a href = "#"> ours 4 </a> </LI>
<Li> <a href = "#"> ours 4 </a> </LI>
<Li> <a href = "#"> ours 4 </a> </LI>
<Li> <a href = "#"> 4. 111 </a> </LI>
</Ul>
</LI>
<Li> <a href = "#"> online demonstration </a>
<Ul>
<Li> <a href = "#"> demo </a> </LI>
<Li> <a href = "#"> demo </a> </LI>
<Li> <a href = "#"> demo </a> </LI>
<Li> <a href = "#"> demo </a> </LI>
<Li> <a href = "#"> demo </a> </LI>
<Li> <a href = "#"> demo </a> </LI>
<Li> <a href = "#"> demo </a> </LI>
<Li> <a href = "#"> demo </a> </LI>
</Ul>
</LI>
<Li> <a href = "#"> Contact Us </a>
<Ul>
<Li> <a href = "#"> contact </a> </LI>
<Li> <a href = "#"> contact </a> </LI>
<Li> <a href = "#"> contact </a> </LI>
<Li> <a href = "#"> contact </a> </LI>
<Li> <a href = "#"> contact </a> </LI>
<Li> <a href = "#"> contact </a> </LI>
<Li> <a href = "#"> contact </a> </LI>
</Ul>
</LI>
</Ul>