Created
November 30, 2010 14:13
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | |
}); | |
} |
Author
bovan
commented
Nov 30, 2010
- only use it on IE6...
- bind it to the
- containing the link and the ul to show.. ul is hidden
- select the dom element, so you can use vanilla js (jquery.css didnt work), and set the correct display mode
fixed selector throwing error if
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment