$(\'.xx\').mouseenter(function(){ if($(this).is(\':hover\')) alert(\'d\'); else alert(\'f\'); });
Here is my code, it should alert \'d
Try something like this
flag = ($('.xx:hover').length>0);
So you can find out if the mouse is, the object