$(\'.xx\').mouseenter(function(){ if($(this).is(\':hover\')) alert(\'d\'); else alert(\'f\'); });
Here is my code, it should alert \'d
why dont you just use .hover?
$(".xx").hover(function(){ alert("d"); });