Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Need help with Drop down menu

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #27702
    jekata85
    Member

    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.