Skip to content
Advertisement

What’s the simplest way to navigate through a list of images?

The purpose of this is to view remote images with a browser. I already have set apache and I can see the folder of pictures with directory listing. The bad thing, is that I have to click each image, each time I want to see one.

What I want is to navigate through the images in the folder using the arrows in my keyboard. I don’t want any UI, just the image.

What’s the best thing to do this? Is it possible to do using just HTML5?

Thanks.

Advertisement

Answer

Here is a simple gallery with keyboard navigation. You can (in php) echo out the directory listing of images as a array in js.

Example

Full Screen Example

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement