Hello,

I'm creating a slideshow with the awesome Cycle plugin and would like
to append the alt text of the next slide into a "next up:" area.  Is
there a way to get the alt attribute of the next slide and append it
to my next up div in the onAfter callback?

Right now i'm using the before and after options to add "loading..."
and current slide alt text, respectively:
$("#fade").load("pictures.php", function() {
            $(this).cycle({
                fx:     'fade',
               timeout: 0,
               prev: '#prev',
               next: '#next',
               before:  onBefore,
               after:   onAfter,
                pager: '#nav'
            });
           function onBefore(currSlideElement, nextSlideElement,
options, forwardFlag) {
                    $('#main').html('loading...');
           }

           function onAfter(currSlideElement, nextSlideElement,
options, forwardFlag) {
                $('#main').html(this.alt);
          }
});
Ideally, in my onAfter callback I would like to have the upcoming
image's alt text instead of the current one's.  Is this possible?

Thanks!
~Amy

Reply via email to