我试图在页面上使用同一张幻灯片两次但不起作用。只有先工作。当我复制 html 时,图像不会出现在第二个滑块中。
代码
$(function(){
$('#slides2').slides2({
preload: true,
preloadImage: 'img/loading.gif',
play: 0,
pause: 2500,
hoverPause: true,
animationStart: function(current){
$('.caption').animate({
bottom:-35
},100);
if (window.console && console.log) {
// example return of current slide number
console.log('animationStart on slide: ', current);
};
},
animationComplete: function(current){
$('.caption').animate({
bottom:0
},200);
if (window.console && console.log) {
// example return of current slide number
console.log('animationComplete on slide: ', current);
};
},
slidesLoaded: function() {
$('.caption').animate({
bottom:0
},200);
}
});
});