Use the plug-in Lavalamp to achieve the dynamic display effect of the navigation bar. I used animate to achieve it before, but the effect was not very good Copy the code The code is as follows: < ;/script> <br><script type="text/javascript"> <br>$(function() { <br>$(".nav").lavaLamp({ <br>fx: "backout" , <br>speed: 1100, <br>mouseover:function(event, menuItem){alert();} <br>}); <br>}); <br><br> <br><br>.nav { <br>width:650px; <br>height:100px; <br>float:left; <br>position: relative; <br>} <br>.nav li { <br>width:auto; <br>min-width:40px; <br>line-height:100px; <br>padding:0 15px; <br>margin:0 10px 0 0; <br>color:#000; <br>font-size:14px; <br>text-align:center; <br>float:left; <br>} <br>.nav li.back { <br>background: #86bf40; <br>-moz-border-radius: 5px; <br>-webkit-border-radius: 5px; <br>line-height: 2; <br>width: 40px; <br>height: 100px; /*----*/ <br>z-index: 1; /*----*/ <br>position: absolute; /*----*/ <br>margin-top: 0px; <br>margin-left:5px; <br>} <br>.nav li a { <br>color: #000; <br>z-index: 2; /*----*/ <br>font-variant: small-caps; <br>text-decoration: none; <br>position: relative; /*----*/ <br>margin: auto 10px; <br>} <br> <br> Home Page Personal Edition Small and medium version Enterprise Edition Service and Price About us Login Register