View Full Version : Image Switch Script
Chicklettes
09-08-2010, 01:08 AM
I am sure there is an easy script out for this, I couldn't find one in the archives. I am looking for a script that rotates a different image everytime someone visits the website. So if someone visits the site once they get image1, if they come back they get image 2 etc. :o
azoomer
09-08-2010, 06:14 AM
maybe this could help
http://www.dynamicdrive.com/forums/showthread.php?p=236073
Chicklettes
09-08-2010, 10:20 AM
Thanks azoomer That looks like exactly what I need, however I couldn't find the banner.js external file they are talking about to download, or am I just being overly blonde this morning? LOL
jscheuer1
09-08-2010, 10:45 AM
That's in post #6 (http://www.dynamicdrive.com/forums/showpost.php?p=235988&postcount=6) of that thread. Save the first code block to a file named banner.js and reference it from the external script tag in the second code block. Configure the images and links in banner.js to your own.
It doesn't rotate in order though, it's random. That means that one may get the same image several times in a row, usually not.
azoomer
09-08-2010, 10:49 AM
I think the easiest thing would be to set up the ultimate fade in slide show and (http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm) in the manual mode, but without the controls. Then set the display mode to : randomize, as john explains in the first answer . Then you will not need any banner.js
ups sorry... crossposting
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.