Differences
This shows you the differences between the selected revision and the current version of the page.
| imageshiftgallery 2009/07/23 16:32 | imageshiftgallery 2009/07/23 16:36 current | ||
|---|---|---|---|
| Line 114: | Line 114: | ||
| <code javascript> | <code javascript> | ||
| // Create new gallery. | // Create new gallery. | ||
| - | // usage: com.buzamoto.ImageShiftGallery.Gallery(id, imageArray, valign); | + | // usage: com.buzamoto.ImageShiftGallery.Gallery(id, imageArray, valign, autoscroll, autoscrollDelay); |
| - | // id: The id <div> that frames the gallery. | + | // id: The id <div> that frames the gallery. |
| - | // imageArray: array of elements included in the gallery. | + | // imageArray: array of elements included in the gallery. |
| - | // valign: vertical alignment of images. 'top', 'middle' or 'bottom' (default: 'top') | + | // valign: vertical alignment of images. 'top', 'middle' or 'bottom' (default: 'top') |
| + | // autoscroll: boolean (default: false) specifies whether content scrolls automatically on load | ||
| + | // autoscrollDelay: integer (in milliseconds) specifies duration between auto scrolling | ||
| var gallery; | var gallery; | ||
| Event.observe(window, 'load', function() { | Event.observe(window, 'load', function() { | ||
| - | gallery = new com.buzamoto.ImageShiftGallery.Gallery('gallery', galleryElements, 'top'); | + | gallery = new com.buzamoto.ImageShiftGallery.Gallery('gallery', galleryElements, 'top', true, 5000); |
| }); | }); | ||
| </code> | </code> | ||