我发现了这个很棒的 jQuery 幻灯片: http ://slidesjs.com/examples/images-with-captions/
但是,我希望它不会为每个图像消失并显示“标题”区域。我希望它只是根据新图像更改文本。
这是否可能,如果可以,我该如何实现?
作为参考,这里是文件:slides.min.jquery.js ( http://slidesjs.com/examples/images-with-captions/js/slides.min.jquery.js )
下面是一段正在使用的 JavaScript 代码:
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);
}
非常感谢您的任何指点。