Looking for a specific rotating image script
Hey all,
I'm looking for a script that would rotate banners/images on a random basis each time you loaded the page. But here's the trick: I want the script to randomize any images in a certain directory -- in other words, i don't want to have to code each image into the script.
Does that make sense?
My goal is to have a procedure automatically dump new images into a directory each day and the script to rotate them. But since the images may vary in number, i can't specify in the script how many or their names.
If there is a script that does what i want, or a different way to do it, i'd really appreciate guidance.
Thanks.
timjpriebe posted this at 13:36 — 25th September 2006.
He has: 2,667 posts
Joined: Dec 2004
What scripting support do you have? Can you run server-side PHP scripts?
If so, this should work well:
http://www.dyn-web.com/scripts/rotate-rand/
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.