fancybox幻灯片中的第一张图片出现两次

时间:2015-01-20 05:39:39

标签: jquery

我正在使用精美的盒子脚本在幻灯片放映中显示六张图片。我一直在几个页面上使用相同的脚本,但在这一个,第一个图像出现两次,我找不到原因。这是我的代码:

    <div id="actividadesofertas"> <a  class="fancybox"  rel="gallery01" href="eventos/Aquagym.jpg" title= "AQUAGYM 1/6" id="launcher"><img src="images_club/actividadesofertas.png">
    <div id="divCheckbox" style="display: none;">
        <a class="fancybox" rel="gallery01" title= "BONOS ALQUILER 2/6" href="eventos/Bonos_alquiler.jpg"></a>
        <a class="fancybox" rel="gallery01" title= "CICLO 3/6" href="eventos/Ciclo.jpg"></a>
        <a class="fancybox" rel="gallery01" title= "PEQUE TENIS/PADEL 4/6" href="eventos/PEQUES-padel_tenis.jpg"></a>
        <a class="fancybox" rel="gallery01" title= "PILATES 5/6" href="eventos/Pilates.jpg"></a>
        <a class="fancybox" rel="gallery01" title= "ZUMBA 6/6" href="eventos/Zumba.jpg"></a>


        </div>

    </div>

第一张图像在幻灯片放映中显示为第一张图像和第二张图像。

欢迎任何帮助。谢谢。

1 个答案:

答案 0 :(得分:1)

您忘记关闭第一张图片的标记

<div id="actividadesofertas"> 
    <a  class="fancybox"  rel="gallery01" href="eventos/Aquagym.jpg" title= "AQUAGYM 1/6" id="launcher">
        <img src="images_club/actividadesofertas.png">
    </a> <!-- INCLUDE THIS -->
    <div id="divCheckbox" style="display: none;">
        <a class="fancybox" rel="gallery01" title= "BONOS ALQUILER 2/6" href="eventos/Bonos_alquiler.jpg"></a>
        <a class="fancybox" rel="gallery01" title= "CICLO 3/6" href="eventos/Ciclo.jpg"></a>
        <a class="fancybox" rel="gallery01" title= "PEQUE TENIS/PADEL 4/6" href="eventos/PEQUES-padel_tenis.jpg"></a>
        <a class="fancybox" rel="gallery01" title= "PILATES 5/6" href="eventos/Pilates.jpg"></a>
        <a class="fancybox" rel="gallery01" title= "ZUMBA 6/6" href="eventos/Zumba.jpg"></a>
    </div>
</div>