dynamic hover menu.

Programming
Tutor: None Selected Time limit: 3 Days

need a jquery script for a dynamic hover menu...
Nov 30th, -0001
hi garry,

hope this will help

$(document).ready(function(){

// Remove the class of child and grandchild
// This removes the CSS 'falback'
$("#nav ul.child").removeClass("child");
$("#nav ul.grandchild").removeClass("grandchild");

// When a list item that contains an unordered list
// is hovered on
$("#nav li").has("ul").hover(function(){

//Add a class of current and fade in the sub-menu
$(this).addClass("current").children("ul").fadeIn();
}, function() {

// On mouse off remove the class of current
// Stop any sub-menu animation and set its display to none
$(this).removeClass("current").children("ul").stop(true, true).css("display", "none");
});

)};
Jul 7th, 2013

Are you studying on the go? Check out our FREE app and post questions on the fly!
Download on the
App Store
...
Nov 30th, -0001
...
Nov 30th, -0001
Dec 3rd, 2016
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer