Hi there
I have implemented a vertical carousel into this site… http://www.pinspired.com/new/test/workshops.html (on the right).
I am using the ‘Vertical Orientation’ carousel from this site http://billwscott.com/carousel/ which also provides full documentation.
However I am having problems with 2 things.
1. The images are currently being displayed at random, I do not want this. I know this has something to do with it but not sure how to fix…
var load = function(carousel, start, last) {
for(var i=start;i<=last;i++) {
var randomIndex = getRandom(12, lastRan);
lastRan = randomIndex;
carousel.addItem(i, fmtItem(imageList[randomIndex], “#”, ” ” + i));
}
};
var getRandom = function(max, last) {
var randomIndex;
do {
randomIndex = Math.floor(Math.random()*max);
} while(randomIndex == last);
return randomIndex;
};
2. Secondly, there are only 12 images, when the user gets to the bottom, it should stop scrolling, it currently continues all the way, how can I stop this?
Please let me know if you can tell me what the problem is.
Thanks
