jquery - add fade-in fade-out effect to menu mouse hover -


i have asp.net menu likes ,

  <asp:menu id="navigationmenu" runat="server" cssclass="menu" enableviewstate="false"                 includestyleblock="false" orientation="horizontal">                 <items>                     <asp:menuitem navigateurl="~/home.aspx" text="home" />                     <asp:menuitem navigateurl="~/about.aspx" text="about" />                 </items>             </asp:menu> 

and here css code ,

div.menu ul li a, div.menu ul li a:visited { border: 1px #4e667d solid; color: #666666; display: block; line-height: 1.35em; padding: 4px 20px; text-decoration: none; white-space: nowrap; border-radius: 6px 6px 6px 6px; -moz-border-radius: 6px 6px 6px 6px; -webkit-border-radius: 6px 6px 6px 6px; font-family: miriam; background-color: #f9f9f9;  }   div.menu ul li a:hover { background-color: #ccccff; color: #ff6600; } 

i've read this answer , i've add code page .

$('#header #menu li a').hover(function () { $(this).fadeout(0).addclass('hover').fadein(300); }, function () { $(this).fadeout(300) .queue(function(){ $(this).removeclass('hover').fadein(0).dequeue() }); }); 

but (fade in/out) effect doesn't work me , wrong in code ?

//source:  ..<body> <form id="f1" runat="server"> <div id="fadediv" style="display:none"> ... </div> </form> </body>   //jquery:  <script type="text/javascript">  $(document).ready(function () {         $('#fadediv').fadein(2000);     }); </script> 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -