setInterval() how does it work?
Hi,
I am pretty new to jQuery and I know setInterval is just Javascript.
I just want to make a sequence of functions (mainly fadeIn/fadeOut) endless without installing more plugins and more files than the basic jQuery.
(I use var $j = jQuery.noConflict(); ):
With this no errors, but nothing happens:
$j(window).load( function() { setInterval("reanimeShow", 5000) } ) ;
This apparently works once:
$j(window).load( function() { setInterval(reanimeShow(), 5000) } ) ;
but I receive an error in Firefox Error Console
Error: useless setInterval call (missing quotes around argument?)
This works once then gets stuck in the final part of the animation an repeats the final bit of the animation in loop (the entire chain has a duration of about 20000):
$j(window).load( setInterval("reanimeShow()", 5000) ) ;
but I receive an error in Firefox Error Console
Error: d is undefined
Source File: http://...jquery-1.4.2.min.js
Line: 49
Is there any simple solution?
Thank you for any help! 