I have this bit of code here and I am trying to make it fade out if
the mouse has been off it for 5 seconds... but if the mouse comes over
it before the time is up, I want it to abandon fadeOut and wait until
the mouse leaves again to fade out.... my code doesn't work... Can
someone help me with this?

// Adjust the Mouse over with no sticky
        $(this).removeAttr("title").mouseover(function(){
                bs_tooltip.css({"opacity":opacity}).fadeIn(speed);
        }).mouseout(function(){
                //Time out tack
                setTimeout(function() {
                bs_tooltip.mouseover(function(){
                                bs_tooltip.show();
                        }).mouseout(function(){
                                bs_tooltip.fadeOut(speed);
                        });
                        bs_tooltip.fadeOut(speed);
                }, 5000);
        });

Reply via email to