JS Mouse Hover changes (drop downs)


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $(document).ready(function () {
  2.  
  3. $('#nav li').hover(
  4. function () {
  5. //show its submenu
  6. $('ul', this).slideDown(100);
  7. $('.li_heading').css('z-index','500');
  8. },
  9. function () {
  10. //hide its submenu
  11. $('ul', this).slideUp(100);
  12. $('.li_heading').css('z-index','0');
  13. }
  14. );
  15.  
  16. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.