我將如何有一個默認的縮略圖幻燈片,如gallerific!當用戶點擊縮略圖時,有4-5張幻燈片(比如花朵的五個不同花樣),然後進行幻燈片放映。放映幻燈片內幻燈片
或者,或者,如何擁有多個畫廊,以及一個在幻燈片中顯示每個畫廊的第一個圖像的腳本?
謝謝@thastark。這照顧了上述要求。有人可以建議如何採取NIVO Slider並使用它的自動播放功能(3大圖像)和標題?
OR這是我在改變中this thread建議的腳本,以獲得3幅大圖像旋轉嘗試:
<div id="main">
<div id="pages">
<div class="navi"></div>
<div class="scrollable">
<div class="items">
<div class="item"><img id = "img1" class= "active" src= "images/main_img1.jpg"></img></div>
<div class="item"><img id = "img2" src= "images/main_img2.jpg"></img></div>
<div class="item"><img id = "img3" src= "images/main_img3.jpg"></img></div>
<div class="item"><img id = "img4" src= "images/main_img4.jpg"></img></div>
</div>
</div></div></div></div>
current_string = $("#main img.active").attr('id');
current = current_string.charAt(3); //get the current image number
current++;
if (current > 4){ //check if current image is the last image display first image
current = 1;
}
current_string = "img" + current;
$("#main img.active).removeClass('active').fadeOut(1000, function(){ //fadeOut existing image
$("#main img").each(function(){
if($(this).attr('id') == current_string){
$(this).addClass('active').fadeIn(1000) //fadeIn next image
}
});
});
喲耶,聽說你喜歡的幻燈片...... – Eli 2011-05-23 15:31:42
Slideception人? – Eli 2011-05-23 15:33:59
@Eli - 幻燈片中的幻燈片?我希望你明白這個要求的嚴重性。在夢裏有很多夢想,我的意思是幻燈片太不穩定! – zeroef 2011-05-23 15:34:22