.caption
スライダーにスライド()が1つしかない場合は、div()が表示されませんが、スライダーに複数のスライドが含まれている場合は、スライドごとimage
に正しいdiv( )が表示されます。.caption
after
プロパティに代わるものはありますか?
助けてくれてありがとう!
コードは次のとおりです。
<div id="slideshow">
<div>
<img src="images/slide1.jpg" width="500" height="500" />
</div>
</div>
$('#slideshow')
.after('<div id="products-nav">')
.cycle({
fx: 'fade',
speed: 2000,
timeout: 0,
next: '#next',
prev: '#prev',
pager: '#products-nav',
after:function(curr,next,opts) {
var index=opts.currSlide;
$('#caption .caption:visible').fadeOut();
$('#caption .caption').eq(index).fadeIn();
tooltip();
}
});