A JavaScript framework for image slideshows.
- Turns backwards or forwards.
- Preloads images.
General:
var c = new Carousel(imageNameArray,domElementContainer); c.showImage();
Special:
var MyCarousel = new Carousel( ["image000.png","image001.png","image002.png","image003.png"], document.getElementById("MyCarousel") ); MyCarousel.showImage(); MyCarousel.forwards(); MyCarousel.backwards();
- Must instantiate your carousel object after the desired container element is registered with the dom.
- Must define a style for the container element, there is no default.