Results 1 to 4 of 4

Thread: HTML command help

  1. #1
    Join Date
    Jul 2004
    Location
    Sussex, UK
    Posts
    3,734

    HTML command help

    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.

  2. #2
    AMDave's Avatar
    AMDave is offline Seeker of the exit clause Moderator
    Site Admin
    Join Date
    Jun 2004
    Location
    Deep in a while loop
    Posts
    9,659
    Two ways I can think of. [ed]ok, three[/ed]
    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.
    . . . . . ___
    . . . . . . .\___/\______
    . . . . . . . \__AMD___\\__
    ---------------------------------------------

  3. #3
    Join Date
    Jul 2004
    Location
    Sussex, UK
    Posts
    3,734
    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.

  4. #4
    Join Date
    May 2004
    Location
    Kent, UK
    Posts
    3,511
    I've got a randomiser html script. I'll dig it out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •