Well, with FancyBox (1.3.4 - might not be true of the version you're using, read its documentation*), a group is triggered if all of the anchor link a tags in it have the same rel attribute. So that's all you have to do. You can either hard code it or have jQuery add it before initializing to FancyBox. I did:
Code:
jQuery(function($){
$(".group1 a").attr('rel', 'group1').fancybox({});
});
That says all a tags in an element (in this case I think it was a division) with the class of group1 are to be given the rel attribute of group1, then initialized to fancybox(). So in markup like:
HTML Code:
<div class="group1">
<a href="whatever" . . .
<a href="whatever" . . .
<a href="whatever" . . .
<a href="whatever" . . .
</div>
all the a tags will all be initialized to fancybox() as rel="group1".
You could do it as id:
Code:
jQuery(function($){
$("#group1 a").attr('rel', 'group1').fancybox({});
});
Code:
<div id="group1">
<a href="whatever" . . .
<a href="whatever" . . .
<a href="whatever" . . .
<a href="whatever" . . .
</div>
*From markup on your tripod page it looks like the version of FancyBox you're using might key off of the data-fancybox-group attribute to determine if a collection of a tags constitutes a FancyBox grouped gallery. If so, substitute 'data-fancybox-group' for 'rel' in the above code.
Bookmarks