Random Image Rotator

massive3215
avatar
rank Enthusiast

Enthusiast


Posts: 81
Joined: 2004-04-16

I'm a front end guy so this may be easy for someone to help me with. I need a random image rotator for a site I'm working on. It can be PHP or Javascript. I've found quite a few different examples but none really have a few features that I'm looking for.

I'm going to have a total of 10 images for the generator to pick from. I want to display 4 of them on the page at a time in list. My problem is I don't want any of the images to be duplicated in that list of 4 items.

I also would like to have the alt and title tag that is associated with each image be pulled in as well if that's possible.

I found this tutorial (http://www.alistapart.com/articles/betterrotator/) but it seems to only be for displaying 1 random image at a time and it doesn't really address the issue of avoiding duplicating my images. Thanks!

Deuce
Deuce's picture
rank Elder

Elder


Posts: 1653
Joined: 2005-11-20
Location: STL

I used the google and found

I used the google and found some articles for you

http://www.sitepoint.com/article/picture-showcase-php-html

http://godbit.com/forum/viewtopic.php?id=2465

maybe that will help

Joshe
Joshe's picture
rank newbie

newbie


Posts: 1
Joined: 2008-05-04

Great Rotators

These can put as many rotators on your page as you want and won't pick the same item twice in a row.
http://www.mooonbaby.com/scripts/absoluterotators.html