如何通过<a href=""> button?

时间:2019-03-28 13:41:25

标签: php jquery html fancybox

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>

1 个答案:

答案 0 :(得分:0)

fancybox v2使用data-fancybox-hrefhref属性作为源,并使用data-fancybox-grouprel属性作为组名。