Yup - you bet it is.
The plan is to scan the folder of images with readdir, which beings each filename into an array, then you can gain info about each image using getimagesize - store this in the array as well.
Then you can build your gallery with this info, creating individual javascript calls to a single function with your variables included: you can in this case also have tested the screen dimensions to ensure that your popup script does not generate a window too large for the screen...
A good exaple of how this would look is on digitalblasphemy.com - if you want more help with this please contact me via PM to discuss it.
|