Portal Home > Knowledgebase > Articles Database > Rotating images every 3 or 4 seconds


Rotating images every 3 or 4 seconds




Posted by mraliks, 03-08-2007, 09:18 PM
I have a website (http://stonecraft-usa.com/) and I was wondering how it would be possible to rotate the images every 3 or 4 seconds to new images. The images I need rotated are the ones next to the words "Stonecraft granite and marble" in the header. I know minimum php, but some html. Thanks

Posted by oggix, 03-09-2007, 03:33 AM
You may use javascript, and you may search for such free script at google or hotscripts.com For more advance, AJAX would be good.

Posted by mikey1090, 03-09-2007, 03:58 AM
yeah i recommend ajax for this

Posted by Xenatino, 03-09-2007, 06:59 AM
No, I think AJAX is unnecessary and over the top for this project. Just take a look at these scripts, they will give you a basic idea: http://dynamicdrive.com/dynamicindex14/index.html

Posted by Sindre, 03-09-2007, 10:24 AM
Have a look at this script: http://smoothgallery.jondesign.net It is open-source and standard compliant. Easy to install too.

Posted by bleenzorb, 03-16-2007, 11:13 AM
Maybe I'm missing something but if all you want is the pics to change, an animated GIF should work.

Posted by mraliks, 03-16-2007, 02:32 PM
good point...sometimes the simplest answer is so hard to figure out. thx for the GIF idea.

Posted by cchere, 03-16-2007, 02:37 PM
agreed, I was thinking of the AJAX method when I was reading your post. The brain is trained to be complex unfortunately

Posted by Xenatino, 03-18-2007, 06:03 AM
I suggested the method above, as a lot of people want to change the images that are rotating, without having to go and change the GIF every time. If you are going to keep the same images all of the time, then GIF is the easiest way to go. However, if you are looking for something that can rotate images from a directory, or a list, and change the images regularly, say to show images in a e-commerce site, then javascript is the best way to go.

Posted by case, 03-18-2007, 11:54 PM
I'd go with the animated gif. If you wanted to extend functionality you could make several variations of your animated gif in separate orders then randomize which gif gets served using php or perl.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
UK2.Net Down? (Views: 742)

Language: