View Full Version : Refresh page with a new image!
Hi!
I'm looking for a script that allows an image on my site to change (to another image) when I refresh the page.
Hope someone knows what i'm talkin about! =)
Thanks
Zizi
Boxer
12-27-2007, 11:28 AM
What scripting language do you need
How many different images you want to replace each other? Where are they stored?
You should get a random value in your script, and then transform it somehow into a filename of an image, and attach it to some prefix (path or URL) and put the resulting string into the <img src="..."> tag.
I can't go into details until I know yours :)
jscheuer1
12-27-2007, 04:57 PM
http://www.google.com/search?hl=en&lr=&client=opera&rls=en&q=site%3Adynamicdrive.com%2Fforums%2Farchive+random+image+jscheuer1&btnG=Search
thank you for your replies, I found what i'm looking for! :)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.