On Fri, Aug 28, 2009 at 8:46 AM, FCCS <brard.pie...@gmail.com> wrote:
> > Hello, > > I'm trying to build a simple "fadeIn" - "fadeOut" loop on a div, but I > get an infinite recursion the way I do it : > > // + Code > function visibleFadeIn() > { > jQuery('#visible').fadeIn(2000, visibleFadeOut()); > } > > function visibleFadeOut() > { > jQuery('#visible').fadeOut(2000, visibleFadeIn()); > } > > // Starts the loop > visibleFadeIn(); > // - Code > > There must be another way to deal with this, does someone have a > suggestion ? > > Thank you very much, > FCCS > jQuery('#visible').fadeIn(2000).fadeOut(2000).fadeIn(2000).fadeOut(2000); try out this one cheers -- Regard Mohammad.Tareque