I have in array images that are grouped by id of the gallery and inside are images that belong to that gallery. i need somehow to append images to the same fancybox group and call this action via single unique <a href="javascript:void(0);">
button.
Version: fancyBox v2.1.5
<a class="grouped_elements" rel="group1" href="javascript:void(0);"><?= $this->trans->btn['title']; ?></a>
This is the button i have several button in foreach loop that need to be unique. fancybox css and js are already included in the html
<a class="grouped_elements" rel="group1" href="javascript:void(0);"><?= $this->trans->btn['title']; ?></a>
答案 0 :(得分:0)
fancybox v2使用data-fancybox-href
或href
属性作为源,并使用data-fancybox-group
或rel
属性作为组名。