James Punteney![]()
The Slideshow base script easily converts html content into a slideshow. It supports any html element so the slides can be divs, imgs, or any other html element you want. Automatically configures buttons for user actions including:
This slideshow is used as the base for the animated slideshow which supports animated transitions between the slides.
The
Y.Slideshow.auto();method looks for elements within the page that have the class "slideshow" on them and then the elements within it with the class of "slides".
<script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2010.05.21-18-16'
}).use('gallery-slideshow-base', function(Y) {
// Looks for an element with the css class of 'slideshow' and internal elements with the class 'slide'
Y.Slideshow.auto();
// Can also run it manually using the below code
// var show = new Y.Slideshow({contentBox: Y.one('#man_slideshow'), pause_time: 2 });
});No forum posts for this module.
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info