How do you add a caption ("1 of 10") that tells which slide the slideshow is on like here:
http://jquery.malsup.com/cycle/count.html
after: onAfter
,function onAfter(curr,next,opts) { var caption = 'Image ' + (opts.currSlide + 1) + ' of ' + opts.slideCount; $('#caption').html(caption); }
to the javascrip part in the head, then <p id="caption"></p>
where I want the caption, but it doesn't work.
I get this error in Chrome:
Uncaught TypeError: Object onAfter has no method 'apply'
Can you help?