Grow your CSS skills. Land your dream job.

Need help with Drop down menu

  • # January 22, 2010 at 6:02 am

    Can someeone help me with the code . I need the drop down menu to close by itself when mouse away . ???

    thank you in advance .

    $(document).ready(function(){
    $("#zone-bar li em").mouseover(function() {
    var hidden = $(this).parents("li").children("ul").is(":hidden");

    $("#zone-bar>ul>li>ul").hide()
    $("#zone-bar>ul>li>a").removeClass();

    if (hidden) {
    $(this)
    .parents("li").children("ul").toggle()
    .parents("li").children("a").addClass("zoneCur");
    }
    });
    });

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".