I have a div that appears under a link (similar to a subnav) when that link is moused over.
I want the div to fade, if they've moused away from the link UNLESS they've moused over the div.
But my attempt failed:
$('.tnav-views').live("mouseleave", function(event){
var timer = setTimeout(function(){
$("#view_levels_subnav").hide(); // regular hide
}, 1000); // 1 second
});
$("#view_levels_subnav").mouseover(function(){
clearTimeout(timer);
});