JQuery.hover function disappears and crashes

I have problems with this freeze. When a child element is clicked inside, the entire menu disappears and then returns.

$('.sc_menuwrap').hover(function(){ $('.sc_menuwrap').stop().fadeTo("slow", 1.0); // This sets the opacity to 100% on hover },function(){ $('.sc_menuwrap').stop().fadeTo("slow", 0); // This sets the opacity back to 60% on mouseout }); 

Here you can see a working example: http://dluxstudios.com/11 Any help was greatly appreciated.

+4
source share
2 answers
 $('.sc_menuwrap').hover(function(){ $(this).stop().fadeTo("slow", 1.0); },function(){ $(this).stop().fadeTo("slow", 0); }); 

Try this should work.

+1
source

Be sure to use stop(true, true)

0
source

All Articles