0

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.

4

1 回答 1

2

在您的 html 中设置“a”标签的标题并将其设置为您想要的链接。单击图像时,在放大图像的底部,您将看到一个链接,您可以在其中单击和导航。

<ul>
  <div class="gallery" id="gallery1">
    <li> <a style="display: inline;" href="sample.jpg" target="_blank" title="&lt;a href='http://google.com'&gt;My Link. Click Me&lt;/a&gt;"> <img src="sample_thumb.jpg" alt=""  /> </a> </li>
  </div>
</ul>
于 2012-05-24T08:06:54.763 回答