1

我需要将 2 个不同的链接添加到同一个灯箱画廊 (http://lokeshdhakar.com/projects/lightbox2/)。问题是,如果我将相同的图像 url 设置为 href,当我单击其中一个链接时,我会得到相同的图像重复两次。这是我写的代码:

<a href="<?php echo base_url().'gallery/'.md5($annuncio['id']).'/'.$first_image; ?>" rel="lightbox[gallery]">first link</a>
<a href="<?php echo base_url().'gallery/'.md5($annuncio['id']).'/'.$first_image; ?>" rel="lightbox[gallery]">second link with same image url</a>
<a href="<?php echo base_url().'gallery/'.md5($annuncio['id']).'/'.$second_image; ?>" rel="lightbox[gallery]">third link to a different image</a>
<a href="<?php echo base_url().'gallery/'.md5($annuncio['id']).'/'.$third_image; ?>" rel="lightbox[gallery]">fourth link to a different image</a>
4

0 回答 0