Hi again. This is an additional question following on from this one.
$('.overlay').bind("mouseenter",function(){
$(this).fadeTo('slow', 0);
}).bind("mouseleave",function(){
var $this = $(this);
setTimeout(function() {
$this.fadeTo('slow', 1);
}, 2000);
})
Beneath my .overlay div I have bits of content that I want to make clickable. So, in this case, the .overlay fades to 0 opacity, but still covers what's beneath.
If I use fadeOut()
and fadeIn()
here, the .overlay disappears completely, and the script thinks I've moved my mouse out, even though I'm still hovering over the .overlay.