if that is all you want to do using jQuery or pure javascript then look at how to use "setInterval" ... that can be defined to run a function at sertain intervals.
check this one out also http://www.thatagency.com/design-studio-blog/2009/01/refreshing-an-element-at-a-set-time-interval-using-jquery-and-a-sprinkle-of-ajax/ On 20 Mar, 13:15, Alexandru Dinulescu <alex.d.a...@gmail.com> wrote: > Hello. > > I have a huge question. I need something that rotates classes each 5 seconds > for ex > > I have a <div class="img1"> </div>. I want each 5 seconds the class to be > changed from img1 to img2, and so on so at the start an array should be > placed like > imgArray = [ "img1" , "img2", "img3", etc ] > > I need css classes changed not a plain image since the image is a > background image and i have text on it. > > I did look over google but i couldnt find any help regarding this matter. > > Thank you > > ------------------- > Alexandru Dinulescu > Web Developer > (X)HTML/CSS Specialist > Expert Guarantee Certified Developer > XHTML:http://www.expertrating.com/transcript.asp?transcriptid=1879053 > CSS :http://www.expertrating.com/transcript.asp?transcriptid=1870619 > RentACoder > Profile:http://www.rentacoder.com/RentACoder/DotNet/SoftwareCoders/ShowBioInf... > > MainWebsite:http://alexd.adore.ro