views:

13

answers:

1

I'm trying to create a comic book reader using javascript where the content of the gallery is dynamically generated from the images in a given directory (directory is chosen with a bit of php). I want to display two pages(images) at a time so the comic is read like it would be in a book format. Users are then able to navigate two pages at a time with their arrow keys.

So far I can only get one page to load and view at any given time.

I would be really grateful if someone could point me in the right direction. I don't want to have to hard-code every gallery.

Thanks in advance!

A: 

Maybe you could generate a directory listing with PHP and put it into the javascript on the page?

thejh