【发布时间】:2011-12-20 06:12:21
【问题描述】:
我发现了这个很棒的 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 代码的 sn-p:
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);
}
非常感谢您的任何指点。
【问题讨论】:
-
试过删除第一个 caption-animate-part 吗?
标签: javascript jquery animation slideshow caption