Return to Snippet

Revision: 52727
at October 31, 2011 20:47 by digitalclubb


Initial Code
$("someelement").mouseenter(function(){
			    clearTimeout($(this).data('timeoutId'));
			    $(this).find(".tooltip").fadeIn("slow");
			}).mouseleave(function(){
			    var someelement = this;
			    var timeoutId = setTimeout(function(){ $(someelement).find(".tooltip").fadeOut("slow");}, 650);
			    $(someelement).data('timeoutId', timeoutId); 
			});

Initial URL

                                

Initial Description

                                

Initial Title
jQuery setTimeout function - mouseenter/mouseleave

Initial Tags

                                

Initial Language
JavaScript