jquery issue, disable on mouseenter queue

Posted by jason on Stack Overflow See other posts from Stack Overflow or by jason
Published on 2010-02-16T20:41:05Z Indexed on 2010/03/19 5:01 UTC
Read the original article Hit count: 389

When you mouseenter .li_group class it does a slide down effect on 1 single <li> tag, everything goes smoothly, but during the delay if you take your mouse off and on .li_group it "queues" the effect and slides the li down, delay, slides it down again etc etc... I have tried every way i can think of, even stop(); but it still does it...

the reason i use mouseenter instead of hover, is because it works better for ul / li list

$(".li_group").live('mouseenter',function(){
        var id = "#ec1";  
        $(id).slideDown();                               
    }).live('mouseleave',function(){
     if (jQuery.support.cssFloat==true || getInternetExplorerVersion() > 7)  {      //ie < 8 endless up/down on close
        var id = "#ec1";  
         $(id).delay(5000).slideUp('fast'); 
       }
    });

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about mouseenter