I picked "Fancybox Jquery" from http://fancybox.net/howto but it is not working in one of my page. Actually, I aspire it to work like a Linkbutton ----> Gallery of images (Pop up) ----> Each of the image from Gallery in original size with navigation arrows on both sides (another Pop up)
But for me, after the Linkbutton click, gallery is opening with thumbnails fine. But after a thumbnail get clicked, images are not opening with navigation arrows. Opening just as an image redirection ie, opening as URL redirection one image for each click.
<script type="text/javascript">
$(document).ready(function () {
$("a.fancybox").fancybox();
});
<asp:Panel ID="TourPoster" runat="server" Visible="false">
<div class="Referral1">
<table>
<tr><th class="Title" style="text-align: center;">Sample Tournament Posters<asp:ImageButton runat="server" ImageUrl="~/StyleSheets/Images/CloseButton.png" ImageAlign="Right" OnClick="LBSampleTournPostersClose_Click" /></th></tr>
<tr>
<td>
<a class="fancybox" rel="group" href="/Images/Samples/Sample1.jpg"><img src="/Images/Samples/Sample1.jpg" alt=""/></a>
<a class="fancybox" rel="group" href="/Images/Samples/Sample2.jpg"><img src="/Images/Samples/Sample2.jpg" alt=""/></a>
<a class="fancybox" rel="group" href="/Images/Samples/Sample2.png"><img src="/Images/Samples/Sample2.png" alt=""/></a>
<a class="fancybox" rel="group" href="/Images/Samples/Sample3.jpg"><img src="/Images/Samples/Sample3.jpg" alt=""/></a>
<a class="fancybox" rel="group" href="/Images/Samples/Sample4.jpg"><img src="/Images/Samples/Sample4.jpg" alt=""/></a>
</td>
</tr>
</table>
</div>
</asp:Panel>
Is there any mistake with the code? I have even tried modifying inside
<script type="text/javascript">
$(document).ready(function () {
$("a.fancybox").fancybox();
});
It's too not working. Kindly help
What I have tried:
I have even tried modifying inside
<script type="text/javascript">
$(document).ready(function () {
$("a.fancybox").fancybox();
});
but it doesn't affect a thing.