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. |
CharlesEF |
Aug 15 2019, 01:20 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,984 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
In Javascript, No. But it can be done server side. (PHP, ASP, ...)
You can use server side code to generate a list of all files in the folder, encode it as JSON and send it to the client (which Javascript can then use). This post has been edited by CharlesEF: Aug 15 2019, 01:24 PM |
Christian J |
Aug 15 2019, 05:52 PM
Post
#3
|
. Group: WDG Moderators Posts: 9,722 Joined: 10-August 06 Member No.: 7 |
|
Lo-Fi Version | Time is now: 21st September 2024 - 01:19 AM |