I know about the superfish plugin, but I found some older, much
lighter code here:
http://be.twixt.us/jquery/suckerFish.php
The funny thing is, when I copy the exact page and his 2006-era copy
of jQuery to my local dev, it works like on his page. If I replace the
jQuery with a modern 1.2.x copy, it doesn't work.
I know the document.all is just a simple IE-only hack, but no matter
what I try, I can't make it work even in FF with a modern jQuery.
Can any of you gurus/folks with fresh eyes see the problem?
$(document).ready(function(){
$("#nav-one li").hover(
function() {
$("ul", this).fadeIn("fast");
},
function() {
}
);
if (document.all) {
$("#nav-one li").hoverClass ("sfHover");
}
});
$.fn.hoverClass = function(c) {
return this.each(function(){
$(this).hover(
function() { $(this).addClass(c); },
function() { $(this).removeClass(c); }
);
});
};