Hey, guys. I was wondering, how could I do a simple jquery script to fade in .submenu of navigation while hovering in items, and fade out when hovering out of it, but here is the trick:
When I hover to another navigation item, it should fade out the last hovered item much faster then when I hover out the entire navigation. I tried this, but somewhere I make a mistake:
$('#navigation li').hover(function() {
$('.subMenu').fadeOut(10);
$('.subMenu',this).stop(true,true).fadeIn(600);
},function() {
var $t=this;
$('.subMenu:visible',$t).fadeOut(400);
})
Can you help me?