问题
I have folder containing >300 images. For all of these images, I'd like to display all these images on one page, centered, with three images per row. Unregarded their size ratio. Clicking an image should launch the fancy box.
I know how to make this work for a hand full of images one by one, but I would like to know whether I can call images from a folder located in -lets say- /images/imagefolder automatically so that I don't have to crate the same line:
<a class="fancybox" href="images/imagefolder/ooo.jpg" data-fancybox-group="gallery" title=""><img src="images/imagefolder/ooo_thumb.jpg" width="225" alt="" /></a>
over and over again.
Can anyone help me out?
edit: html code was not there
来源:https://stackoverflow.com/questions/19629762/image-gallery-fancybox2-by-folder