0
我希望有人能幫助我解決以下問題。jQuery幻燈片垂直圖像
我在我的網站上有一個垂直滾動條,顯示5個圖像,並會根據您點擊的位置進一步或向後滾動5張圖像。
jQuery代碼看起來像這樣。
$(".productSlide .scrollable").scrollable();
$(".productSlide .scrollable").scrollable({ vertical: true, mousewheel: true });
我是新來的jQuery和我可以實現IST以下
<div class="scrollBlock">
<?php
for($i=0; $i<5; $i++)
include 'example1.php';
?>
</div>
<div class="scrollBlock">
<?php
for($i=0; $i<5; $i++)
include ' example1.php';
?>
</div>
<div class="scrollBlock">
<?php
for($i=0; $i<5; $i++)
include ' example1.php';
?>
</div>
在example1.php有這將顯示5倍的圖像。每次你點擊你將會看到相同的div,同樣的5張圖片。如果沒有「scrollBlock」div,我無法弄清楚這一點。我怎樣才能在一個區塊中使用更多的圖片 - 它仍然在滾動5張圖片?
非常感謝!