Can anyone help me with this "I want to run these html codes randomly"

Discussion in 'HTML & Website Design' started by pidge1992, Jun 11, 2011.

  1. #1
    Hey Guys

    anyone can help me in this ?

    If I got 4-5 HTML Codes which I want to run randomly or I can say, if someone reloads page, it gets automatically changed every time...

    for example..

    code1:<img src="example.jpg" width="225" height="151" alt="Milford Sound in New Zealand" />

    code2:<img src="example.jpg" width="225" height="151" alt="Milford Sound in New Zealand" />

    code3:<img src="example.jpg" width="225" height="151" alt="Milford Sound in New Zealand" />

    code4:<img src="example.jpg" width="225" height="151" alt="Milford Sound in New Zealand" />

    code5:<img src="example.jpg" width="225" height="151" alt="Milford Sound in New Zealand" />

    So I want if someone reloads page, sometimes code 1 runs, and ignore the other 4 ones.. and sometimes code 2 runs and ignores the other 4... and so on...


    without affecting the whole other html coding of my webpage...

    Waiting for anyone to reply to this question

    Please reply if anyone can help

    Thanks
     
    pidge1992, Jun 11, 2011 IP
  2. IberoMedia

    IberoMedia Peon

    Messages:
    35
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    0
    #2
    IberoMedia, Jun 12, 2011 IP