我爲joomla 2.5.x/3.x創建了幻燈片模塊。它讀取指定目錄中的圖像文件並顯示幻燈片。今天我想在另一個模板中使用它。 Joomla很好地展示了我的幻燈片模塊,但是偶數編號的幻燈片也是隱藏的。第一個顯示,第二個隱藏,第三個顯示,第四個隱藏,等等。偶數幻燈片隱藏在Bootstrap的旋轉木馬中
我的HTML輸出結果如下:
<div>
<script src="http://myjoomlasite.com/media/jui/js/bootstrap.min.js">
<div id="zkanocaCarousel2" class="carousel slide">
<ol class="carousel-indicators">
<li data-target="#zkanocaCarousel2" data-slide-to="0" class=""></li>
<li data-target="#zkanocaCarousel2" data-slide-to="1" class=""></li>
<li data-target="#zkanocaCarousel2" data-slide-to="2" class=""></li>
<li data-target="#zkanocaCarousel2" data-slide-to="3" class="active"></li>
<li data-target="#zkanocaCarousel2" data-slide-to="4" class=""></li>
<li data-target="#zkanocaCarousel2" data-slide-to="5" class=""></li>
<li data-target="#zkanocaCarousel2" data-slide-to="6" class=""></li>
<li data-target="#zkanocaCarousel2" data-slide-to="7" class=""></li>
<li data-target="#zkanocaCarousel2" data-slide-to="8" class=""></li>
</ol>
<div class="carousel-inner">
<div class="item"><img src="/./images/slideshow/1.jpg" alt="" ></div>
<div class="item"><img src="/./images/slideshow/2.jpg" alt="" ></div>
<div class="item"><img src="/./images/slideshow/3.jpg" alt="" ></div>
<div class="item active"><img src="/./images/slideshow/4.jpg" alt="" ></div>
<div class="item"><img src="/./images/slideshow/5.jpg" alt="" ></div>
<div class="item"><img src="/./images/slideshow/6.jpg" alt="" ></div>
<div class="item"><img src="/./images/slideshow/7.jpg" alt="" ></div>
<div class="item"><img src="/./images/slideshow/8.jpg" alt="" ></div>
<div class="item"><img src="/./images/slideshow/9.jpg" alt="" ></div>
</div>
<a class="left carousel-control" href="#zkanocaCarousel2" data-slide="prev">‹</a>
<a class="right carousel-control" href="#zkanocaCarousel2" data-slide="next">›</a>
</div>
</div>
<script>
$(function(){
$.noConflict();
$('#zkanocaCarousel2').carousel();
});
</script>