I have Fancybox set up to display a gallery of 8 pictures. The first one is displayed on the page and opens the gallery when clicked.
What I'm trying to do now is add another gallery, except with HTML content instead of images, so it's like flipping through a book when navigating the gallery. But nothing's appearing when I click the image.
Here's my Fancybox script:
<script type="text/javascript">
$(document).ready(function(){
$("a.fancybox").fancybox({
openEffect : 'none',
closeEffect : 'none',
nextEffect : 'none',
prevEffect : 'none',
nextSpeed : 0,
prevSpeed : 0,
preload : 3,
'padding' : 15,
'speedIn' : 0,
'speedOut' : 0,
'overlayShow' : true
});
});
</script>
And here's the HTML:
<a class='fancybox' rel='{$id}' href=#popuptext><img src='galleryimage.jpg'></a>
<div style='display: none'><div id='popuptext'>Page 1 text</div></div>
<a class='fancybox' rel='{$id}' href=#popuptext'></a>\n
<div style='display: none'><div id='popuptext'>Page 2 text</div></div>
<a class='fancybox' rel='{$id}' href=#popuptext'></a>\n
<div style='display: none'><div id='popuptext'>Page 3 text</div></div>
<a class='fancybox' rel='{$id}' href=#popuptext'></a>\n
<div style='display: none'><div id='popuptext'>Page 4 text</div></div>