Wooooo.. awesome !! Thanks a ton !!
On Jan 25, 11:38 am, Ricardo Tomasi <ricardob...@gmail.com> wrote: > Use setInterval instead: > > $(document).ready(function(){ > var words = ['one', 'two', 'three', 'four', 'five'], > tweet = $('#tweet'), i = -1; > var slideshow = setInterval(function(){ > var val = words[++i] || words[i=0]; > tweet.slideUp(function(){ > $(this).text( val ).slideDown(); > }); > },2000); > > }); > > On Jan 25, 2:15 am, realin <real...@gmail.com> wrote: > > > Awesome!! Works for me, but is there any way to make it continous > > slideshow. I mean right now it stops at five, i want to restart when > > it reaches five. Like looping slideshow.. > > > Thanks a ton !! > > > On Jan 24, 5:38 pm, realin <real...@gmail.com> wrote: > > > > Hi Guys, > > > > Is there a way toloopthroughan array while i insert the elements > > > into a div and animate it. THe scenario is like i want a slide show of > > > text inside a div. So the div with id "tweet" gets update with array > > > elements after 5 secs. > > > > This is waht i come up with, i know it may be a total mess, but i am > > > the new one here .. > > > > a={0,1,3,4,5}; > > > $(document).ready(function(){ > > > jQuery.each(a,function(){ > > > $("#tweet").text(this.text); > > > setTimeout('$("#tweet").slideUp("slow")',2000); > > > }); > > > }); > > > > <div id=tweet></div> > > > > Thanks in advance :) > > > > Cheers !! > > > Realin!