I’m using a light box(jquery.lightbox-0.5.js) for my gallery page. And my code for display the image is
<ul>
<div class="gallery" id="gallery1">
<li> <a style="display: inline;" href="sample.jpg" target="_blank"> <img src="sample_thumb.jpg" alt="" /> </a> </li>
</div>
</ul>
It’s working fine.
But now i want to provide the link to the Lightbox image. i.e., On clicking the Image within the Lightbox, i want to redirect the user to some other page.
But i dont know how to achieve this? Does anyone have any idea about this? Thanks in advance.
set title of the “a” tag in your html and set it to the link you want. when image is clicked, on the enlarged image’s bottom you will see a link where you can click and navigate.