Hi guys,
I'm a complete absolute jQuery noob. I've been following a tutorial to add a CSS/jQuery navigation menu to my site, and I got it working.. The only thing I would like to see added is a small delay on Mouse out, because the dropdown menu is disappearing instantly when you mouse out which makes the menu a bit annoying to use. Here's my script:
function mainmenu(){
$(" .top-menu ul ").css({display: "none"}); // Opera Fix
$(" .top-menu li").hover(function(){
$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
},function(){
$(this).find('ul:first').css({visibility: "hidden"});
});
}
$(document).ready(function(){
mainmenu();
});
Would anyone be so kind to add the needed code to this script. I'll promise to study how you've done it, so I actually learn from it ;-D