Lightbox2 - images display on new page but not in lightbox dialog box
in Using jQuery Plugins
•
9 years ago
Hi,
I'm trying to get lightbox2 working on my web site but when I click on my thumbnail image which should then expand into a larger image within the lightbox dialog box what I get is a new page opening containing only the image.
I'm not sure if my directory structure has something to do with it.
The page that contains my lightbox calling code is in:
gallery\2014\jam050214.html
My lightbox js, css, directories are in:
lightbox\
My code to include lightbox is:
<script src="../../lightboxs/js/jquery-1.10.2.min.js"></script>
<script src="../../lightbox/js/lightbox-2.6.min.js"></script>
<link href="../../lightbox/css/lightbox.css" rel="stylesheet" />
My calling code is:
<a href="../../images/gallery/2014/jam050214/sample.jpg" data-lightbox="rehearsal" title="My caption"><img src="../../images/gallery/2014/jam050214/sample.jpg" alt="sample" width="170" height="119"/></a>
Any help would be much appreciated. Thanks,
Martin
1