Skip to content

Instantly share code, notes, and snippets.

@bovan
Created November 30, 2010 14:13
Show Gist options
  • Save bovan/721730 to your computer and use it in GitHub Desktop.
Save bovan/721730 to your computer and use it in GitHub Desktop.
small fix to enable dropdown in IE6.. does throw errors when there isn't any subitems (ul) inside though
if ($.browser.msie && $.browser.version.substr(0,1)<7) {
$('.nav > ul > li').live('mouseover mouseout', function(e) {
if($("ul", this)[0])
$("ul", this)[0].style.display = (e.type == 'mouseover')? 'block' : "none";
});
}
@bovan
Copy link
Author

bovan commented Nov 30, 2010

fixed selector throwing error if

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment