Web Hosting Talk







View Full Version : Rotating images every 3 or 4 seconds


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

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.

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

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

ProperHost
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.

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.

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

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

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.

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.