View Full Version : HTML command help
Empty_5oul
05-18-2005, 11:01 AM
i want to be able to randomise the order of the images on a page. All images are the same size but where they appear needs to be random so on each load every picture has a change of being at the top.
I have searched this and found loads of image randomising but so far this is only for having 1 image up at a time. How is it possible to diplay them all but in a undefined order?
Thanks.
AMDave
05-18-2005, 03:10 PM
Two ways I can think of. ok, three
If it is a remote site then you have to do it the hard way by programming the client to do it, use an array (Javascript/VBS) and randomize the order of the links to the images
OR
If it is a local site and you have control on the server, the easy way is to use static references in the page, but run a script on the server to randomly change the file name of the images to match your static references. This way you can cycle through a much larger number of images but only show a smaller number on the page like web ads, simple but effective.
OR
You can even implement this on a remote site by scripting the filename change locally and then re-sending the files up to the remote site periodically.
Empty_5oul
05-18-2005, 05:11 PM
it is our own site, so we have complete access. I will have a look at static references then.
thanks
see here: www.eastbourne.org/hotels/index.php it is for the image thumbnails up the sides.
Ototero
05-18-2005, 07:07 PM
I've got a randomiser html script. I'll dig it out.
Powered by vBulletin® Version 4.2.3 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.