Image gallery (fancybox2) by folder

柔情痞子 提交于 2019-12-25 05:31:57

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!