JQuery - live mouseover event

I am trying to show snapping when a div is soaring. This works fine, but when I got the better of the link, it blinks when it should just stay. I tried the regular hover function on the binding, and that didn't work ... This is my js:

$ ('. div_mayKnowUser'). live ("mouseover", function () {
   $ (this) .find ('. a_ignoreUser'). fadeIn ();
});

$ ('. div_mayKnowUser'). live ("mouseout", function () {
   $ (this) .find ('. a_ignoreUser'). fadeOut ();
}); 

and my HTML:

<div class="div_mayKnowUser">
    <a href="" class="a_ignoreUser">a link</a>
</div>

Thank!

+3
source share
1 answer

"mouseover" => "mouseenter"

"mouseout" => "mouseleave"

worth a read = > http://www.quirksmode.org/js/events_mouse.html

: live mouseenter/mouseleave, , , , . .

+9

All Articles