2010-06-19 2 views
0

Je souhaite qu'une galerie jCousousLite agisse comme des miniatures défilantes et présente une image plus grande à côté de celle-ci en faisant référence aux images actuellement affichées (puis en sélectionnant la première image via un tableau ou similaire). Comment pourrais-je aborder cela?

La configuration actuelle -

$('.carousel').jCarouselLite({
btnNext: '.next',
btnPrev: '.previous',
auto: true,
timeout: 500,
speed: 500,
vertical: true,
visible: 3,
circular: true,
beforeStart: function(a) {
//alert("Before animation starts:" + a);
},
afterEnd: function(a) {
//fetch first image of the currently displayed images
//set html content of .display div to be that of the new image
}
});
jCarouselLite: Comment puis-je obtenir les valeurs des images actuellement affichées?

Répondre

0

Cela pourrait aider - Showing the position in jCarouselLite

Vous pouvez utiliser les fonctions intégrées AfterEnd et BeforeStart vous montrer ce qui est actuellement affiché à l'utilisateur.

$(".ccvi-carousel").jCarouselLite({ 
    btnNext: ".next", 
    btnPrev: ".prev", 
    speed: 800, 
    //auto: 2000, 
    afterEnd: function(a) { 
     //look into the object and find the IDs of the list items 
     left = $(a[0]).attr("id"); 
     mid = $(a[1]).attr("id"); 
     right = $(a[2]).attr("id"); 
     //Do something 
     $('li#' + left + ' .cf-img').fadeIn(); 
     //alert("Left:" + left + "Middle:" + mid + "Right:" + right + ""); 
    } 
}); 
Questions connexes