Let me start by saying I am not an expert and my solution may not be
the best/most efficient.
But, I Define the attributes for an iframe separately from the rest of
the group. (you can check out
http://kevinfolk.com/portfolio.html to
see it in action).
Here is the code I used:
$("a.group").fancybox({
'cyclic' : 'true',
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'titlePosition' : 'outside',
'overlayColor' : '#000',
'overlayOpacity' : 0.9,
'titleFormat' : function(title, currentArray, currentIndex,
currentOpts) {
return '<span id="fancybox-title-outside">Image ' + (currentIndex +
1) + ' / ' + currentArray.length + ( title.length ? ' <br> ' + title :
'') + '</span>';}
});
$("a.iframe").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'titlePosition' : 'outsid e',
'overlayColor' : '#000',
'overlayOpacity' : 0.9, 'titleFormat' : function(title,
currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-outside">Image ' + (currentIndex +
1) + ' / ' + currentArray.length + ( title.length ? ' <br> ' + title :
'') + '</span>';},
'width' :'85%',
'height' :'85%',
'type' :'iframe',
'showNavArrows' : false
});
________
<a class="group" rel="zoroaster" href="images/portfolio_images/
Zoroaster_Flyer.jpg"
title="Zoroaster Wines In-Store Flyer
<br><br>Title.">
</a>
<a class="iframe" rel="zoroaster" href="
http://issuu.com/kevinfolk/
docs/zoroaster_stylebook?mode=embed&viewMode=presentation&layout=http
%3A%2F%
2Fskin.issuu.com%2Fv%2Fdarkicons%2Flayout.xml&showFlipBtn=true"
title="Zoroaster Wines Stylebook
<br><br>Title."></a>