Cycle plugin caption with one slide
Hi,
I can not get to see the div (.caption) if the slider contains only one slide (image), while if the slider contains multiple slide you see the correct div (.caption) for each slide.
Is there an alternative to
AFTER property?
Thank you very much for the help!
Here is the code:
$('#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();
}
});