我需要在同一个灯箱库中添加2个不同的链接(http://lokeshdhakar.com/projects/lightbox2/)。问题是,如果我将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>