PDA

View Full Version : random images ?



carlito
May 31st, 2002, 08:51
Is it possible to display a random image in HTML?

hawkman2
May 31st, 2002, 09:19
Sure it's just a question of what you want to do it in. asp, php, cgi, javascript will all do this. Possilby dhtml too?

http://www.google.com/search?hl=en&ie=UTF8&oe=UTF8&q=random+images+in+html

carlito
June 1st, 2002, 09:24
eeek that looks a bit too complicated for me :(

meow
June 1st, 2002, 22:47
:) No, it isn't. Here's a simple javasript. All you have to do is to list your images and put a snip of code where you want them in your html.

http://javascript.internet.com/miscellaneous/random-image.html

carlito
June 2nd, 2002, 00:54
Sounds good. BTW do you know if IE automatically loads the random images? That would be annoying for ppls if there were a lot.

NirvanaX5X
June 2nd, 2002, 01:06
I know at dreamweaver.com theres an extension that does it.All you have to do is tell it which pictures and how often u want them changed.

Homeygwiz
June 3rd, 2002, 15:35
I used some javascript and modified it in my HTML page to load Random Metallica Pictures for my Metallica Website. It loads and refreshes a picture every 30 seconds.

Check this out and use the code if you want.

http://www.hgwmetallica.150m.com/

HGW

carlito
June 6th, 2002, 06:38
THANKS!