The best is to check out the example in http://jsfiddle.net/jDn7X/
$(".container.a1 div").hover(function(e){
$(".popup").show(300).css({top: (e.pageY + 15) + "px",left: (e.pageX + 10) +"px"});
},function(){
$(".popup").hide(300);
});
The popup keep appering when I move over the div array.
<div class="container a1">
<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
</div>
With clearQueue the behaviour is random.
What’s the best way to clear the previous jquery timers?
Try using stop() :
FIDDLE
I would probably do something more like this (see comments) :
FIDDLE