Code wont show random images

Discussion in 'HTML & Website Design' started by obeegoone, Oct 27, 2010.

  1. #1
    Hey, after changing from add images per line that i want to rotate i changed so it rotated all images in the folder, anyhow now when i add the code to my index.htm i wont show any images at all :(


    I added some text/info and then <img src="images/rotate.php" /> but wont work, i followed this guide http://www.alistapart.com/articles/randomizer/

    Any help would be very appriciated
     
    obeegoone, Oct 27, 2010 IP
  2. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #2
    Post the bit of code you are using in your page so people can take a look.
     
    mcfox, Oct 28, 2010 IP
  3. andolasoft

    andolasoft Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you need to use javascript to enable image rotation. search for image rotate javascript and use it.
     
    andolasoft, Oct 28, 2010 IP
  4. ralphnsk

    ralphnsk Member

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    This might be because images get cached by your browser. I suggest You add a random query string or a current timestamp after your rotate.php
    something like
    images/rotate.php?lkjhkjhcwlerkjhc
    once this string is unique for each page load, it will display the unique image
     
    ralphnsk, Oct 28, 2010 IP