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
This post describes how to do it with PHP, and also gives you the code: http://www.alistapart.com/articles/randomizer/ This post describes how to it with javascript, and gives you the code: http://www.web-source.net/web_development/random_images.htm