6
// Carousel
$(function(){
$(".peq-carousel").jCarouselLite({
bntNext: '.next',
bntPrev: '.prev',
visible: 7,
auto: 3000,
speed: 800,
vertical: true
});
});
// Barra Progresso
function startbar(){
var barr = document.getElementById('timeBar');
var maxx = barr.max;
var vall = barr.value;
if ( vall < maxx ){
barr.value++;
setTimeout("startbar()", 7);
}
if ( vall >= maxx ){
barr.value=0;
startbar();
}
}
The function I showed above works very well the slide Carousel. Just like the progress bar function. But how do my progress bar function click on the object "bntNext: '.next'" Every time she Zera.???? Where in the progress bar commands, I must put a code, or some variable...