Skip to content

Instantly share code, notes, and snippets.

@razbakov
Created November 30, 2012 14:52
Show Gist options
  • Save razbakov/4176216 to your computer and use it in GitHub Desktop.
Save razbakov/4176216 to your computer and use it in GitHub Desktop.
index.html: before </BODY>
jQuery(function(){
$('.nav li').mouseover(function() {
$(this).addClass('hover');
});
$('.nav li').mouseout(function (e) {
// Do not close if going over to a select element
if (e.target.tagName.toLowerCase() == 'select') return;
$(this).removeClass('hover');
});
})
main.css:195
.nav li.hover .drop {display:block;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment