Rama
Rama

Reputation: 1069

How to Display Images sequentially from a folder using HTML-Javascript-CSS?

Thank you in advance!

Upvotes: 1

Views: 1437

Answers (1)

Mathias
Mathias

Reputation: 1500

I think this is not trivially possible for security reasons. No webpage (even locally) is allowed to simply read your folder content. There have been some workarounds for some browsers, but I don't think there is a true Cross-Browser solution.

That said, there is the HTML5 file API that allows the user to select the images or drag and drop them to a local website.

Another option would be to have a small executable file that creates for instance a json List of your files and have the website read the filenames from there.

After you have the filenames, use any HTML/JS/CSS gallery.

Upvotes: 2

Related Questions