Create slideshow from source folder, Slideshow of photos contained in content folder |
Create slideshow from source folder, Slideshow of photos contained in content folder |
joeseppe69 |
Aug 15 2019, 01:09 PM
Post
#1
|
Group: Members Posts: 4 Joined: 15-August 19 Member No.: 26,958 |
Is there a way to have a slideshow of all the photos uploaded into a specific folder?
I can create a simple slideshow in HTML but I would need to list each of the photo file names within the code. If possible, I would rather the code be static and simply look to a specific folder where all the photos are stored and create the slideshow for all those images. Like that, if I wanted to change the photos in said folder, refreshing the page will the make the slideshow with the new photos and the core HTML code does not need to be edited. |
Christian J |
Aug 16 2019, 04:31 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,650 Joined: 10-August 06 Member No.: 7 |
Will the finished page be run from a web server? You'd need one in order to run server-side scripts. But it's not possible for (client-side) javascript to view the files of the client computer, for security reasons.
Maybe there are Windows programs that can generate a list of files as well (and then you'd just manually copy that list to the slideshow script code). |
pandy |
Aug 16 2019, 07:59 AM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Maybe there are Windows programs that can generate a list of files as well (and then you'd just manually copy that list to the slideshow script code). Some text editors even. Or, available on every Windows PC. Bring up a command prompt and in the directory in question and type... CODE dir /b /a-d Or if you want to pipe the list to a file... CODE dir /b /a-d > list.txt The list may include the name of the text file too. |
Lo-Fi Version | Time is now: 17th April 2024 - 08:41 PM |