私はこの素晴らしい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);
}
ポインタをありがとう。