Script that will display 14 links images randomly?

Discussion in 'Programming' started by WoodiE55, Oct 10, 2007.

  1. #1
    I've got a site that has (14) 120x120px ads along the left side of the site. Currently I just have them listed along the side using html, however some of my advertisers would like to see the 14 blocks show in different order, so the guy at the bottom isn't always shown at the bottom.

    What's a good program that will allow me to display the 14 all at once but in different orders per page load?
     
    WoodiE55, Oct 10, 2007 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Where are the ads stored?

    If they are in an SQL database you can just add "order by newID()" at the end and this will randomise the order in which they are returned
     
    AstarothSolutions, Oct 10, 2007 IP
  3. WoodiE55

    WoodiE55 Well-Known Member

    Messages:
    193
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    125
    #3
    The images are stored in a folder on the webhost - simple html code and .jpg images.
     
    WoodiE55, Oct 10, 2007 IP
  4. litebulb1

    litebulb1 Peon

    Messages:
    151
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    very basic but I think you will get the idea.
     
    litebulb1, Oct 10, 2007 IP
  5. WoodiE55

    WoodiE55 Well-Known Member

    Messages:
    193
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    125
    #5
    I'm sorry I have no programming experience - maybe there is a program that will do this for me?
     
    WoodiE55, Oct 22, 2007 IP