on-internet
← Community

Fancybox Image Gallery

Stack Overflow ·

I have the following code in an iframe and I made it display in the parent but now I don't know how I can group the images like image gallery in fancybox example. I saw this in an example: $(document).ready(function() { $('.imagen').click(function(e){ e.preventDefault(); parent.$.fancybox([ {href:'images/01.jpg', title: '01'}, {href:'images/02.jpg', title: '02'}, {href:'images/03.jpg', title: '03'} ],{ // href: this.href, helpers: { overlay: {............... but I do not want that because links are going to be dynamic. I would like to use something like $(".fancybox") .attr('rel', 'gallery') a

Comments

Sign in or sign up to comment and upvote.

No comments yet.