Forum Moderators: coopster

Message Too Old, No Replies

What's best way to Do This?

Load Image A, then rotate to random image, Then Stop

         

Mardi_Gras

9:09 pm on Jan 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



We are changing a real estate site, and want the home page to open with image A. Image A (we hope) will then rotate to any one of several possible random images of properties for sale. The second image will then stay unchanged until the user reloads, at which point the cycle should start again, loading Image A then another random image. And the second image (ideally) will be clickable.

My coder knows how to rotate images in PHP (although PHP is new to him). What we don't know how to do - or if it is possible - is to always bring up one image, then a second random image. Is this possible in PHP, or do we need to try another approach?

jatar_k

9:14 pm on Jan 16, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Is it a js rotating function?

You could use php to write the second image name in dynamically.

Mardi_Gras

9:44 pm on Jan 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, it uses JS to rotate. Thanks for the advice. I'll let you know what happens :)