I'm sure many of you out there know the answer to this, but unfortunately I do not. I am attempting to create a slide show using HTML and JavaScript. I want it to produce a slide show with all the pictures in a directory. However, I have not been able to find an example in javaScript that does not require me to include the name of the graphics file in the code or use a consistent naming structures (e.g., picture0.jpg, picture1.jpg, etc.) knowing the exact number of files in the directory.
Is there a way to get javaScript to scan a directory and then place the contents in an array?
Is there a way to get javaScript to scan a directory and then place the contents in an array?