.delay() only works between .animate() calls._ http://stackoverflow.com/questions/251204/delay-jquery-effects
$.fn.pause = function(duration) {
$(this).animate({ dummy: 1 }, duration);
return this;
};[update] Actually, it doesn't do anything.
setTimeout() works. One of the more basic usages from the same source:var duration = 1000;
setTimeout(function() { $('#foo').fadeOut(); }, duration);I'm seeing weird behavior with mouseover, mouseout, mouseenter, & mouseleave events. Child elements were triggering events I didn't understand.
_ http://stackoverflow.com/questions/766286/how-do-i-ignore-mouse-events-on-child-elements-in-jquery
I forgot to include
return false;_ http://stackoverflow.com/questions/1114187/is-it-a-bad-idea-to-leave-firebug-console-log-calls-in-your-producton-javascrip
if(typeof console === "undefined") {
console = { log: function() {} };
}