[ 2 posts ]

DJ Feldmeyer

  • Username: oheso
  • Joined: Fri Apr 01, 2011 3:11 pm
  • Posts: 2
  • Offline
  • Profile

Feature request: captions?

Post Posted: Fri Apr 01, 2011 3:20 pm
+0-
Would it be possible to display captions using the ALT text?

Josh Lizarraga

YUI Contributor

  • Offline
  • Profile

Re: Feature request: captions?

Post Posted: Thu Apr 14, 2011 11:12 pm
+0-
Hi DJ,

You could accomplish this in the upcoming 2.1 release. You can get the source here if you want to try it out:

http://freshcutsd.com/dev/yui-slideshow/2.1-dev.js

Something like this would do the trick:

Code:

var slideshow = new Y.Slideshow('#slideshow');

slideshow.on('slide', function(e){

    Y.one('#caption').setContent( this.get('_incomingSlide').one('img').get('alt') );

}, slideshow);




Josh
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum