Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

easy random image loader

Status
Not open for further replies.

jackyl

Programmer
Oct 23, 2001
44
CA
Good morning ...

does anyone have a good random image loader? I have a random slideshow viewer that I could try to modify, but I'm not very good at that sort of thing.

ALSO, if there is a way to specify different 'sets' of images, that would be GREAT. I'm going to end up with 6 different sections, and each needs it's own set of photos.

 
Look at this:
[tt]
document.write('<img src=&quot;' + Math.round(Math.random()*10) + '.jpg&quot; alt=&quot;photo&quot; width=&quot;190&quot; height=&quot;200&quot;>');
[/tt]
Just create a set of images with names 1.jpg - 10.jpg and that's all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top