$(document.body).delay(3000).show(1, function(){
which will use jQuerys fx queueing to create a timeout. To emulate an interval this way, use a function that calls itself when the callback closes.
function repeat(){
Use $(document.body).stop() to clear the fx queue and stop the interval.
This is similar to the javascript setTimeout hack interval.
(function(){ alert('I popup every 5 seconds! haha!'); setTimeout(arguments.callee, 5000); })();
source share