Discuss automatic random in the Java Help forum on Dev Shed. automatic random Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.
Posts: 15
Time spent in forums: < 1 sec
Reputation Power: 0
automatic random
I've got a piece of javascript that chooses 3 images randomly from an image folder and slots them in my html page.
What I would like it to do though is to make it retrieve/get file names from a directory and put these into the javascript array without me having to write the names of the images in the script (or the number of them) which I'm not sure can be done.