I have spent the last two hours trying to get fancybox to work for me with no avail. I searched this forum as well, but nothing helps. I'm hoping that someone will be able to help me.
Here are the links:
<link href="/css/bootstrap.css" media="screen" rel="stylesheet" type="text/css" >
<link href="/css/main.css" media="screen" rel="stylesheet" type="text/css" >
<link href="/css/jquery.fancybox.css" media="screen" rel="stylesheet" type="text/css" >
<script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.js"></script>
<script type="text/javascript" src="/js/jquery.fancybox.js"></script>
<script type="text/javascript" src="/js/jquery.fancybox.pack.js"></script>
Here is the code:
<script type="text/javascript">
$(document).ready(function() {
$('.fancybox').fancybox();
});
But the following doesn't work, the image opens in a new page:
<a href="/index.php/files/showimage/id/80" class="fancybox" title="View Image">
<img src="/img/icons/image.png" alt="Member Image" /></a>
I don't get any errors when using the Firebug console. I'm using Firefox, but it doesn't work in Chrome and Safari either. Thanks in advance.