set attributes
|
|
hi …
<script type="js">
function runTest() {
var ul = $$("#horizontal_carousel .container ul").first();
horizontal_carousel.nbVisible=2;
// Fill carousel
var html = $R(0,31).inject("", function(html, index) {
return html + '<li><img alt="Image'+ index + '" src="../../assets/images/image' +
index + '.png"/>Image #' + index + "</li>";
});
ul.update(html);
new UI.Carousel("horizontal_carousel");
}
Event.observe(window, "load", runTest);
but not working .. thanks in advance |
|
|
horizontal_carousel.nbVisible=2; What does it mean? |
|
|
hi Seb .. |
|
|
Change in CSS width of #horizontal_carousel (to 448px) and #horizontal_carousel .container (to 375px) |
|
|
thanks for the help .. new UI.Carousel(“vertical_carousel”, {direction:”vertical”,scrollInc: 3,nbVisible: 5}); the scrollInc is set now to 3 and it works, |