Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I have implemented a jcarousel ,
Below is the thing i required , slider will slide in auto 1st time once done it will go to 1st slide .
problem i am facing is after auto slide it goes to 1st slide but manually wheni go to last 1 its again to to 1st slide


below is my code please help me

JavaScript
function itemLoadCallbackFunction(carousel, state)
{
  
    for (var i = carousel.first; i <= carousel.last; i++) {
       
        if (i==5) {
            carousel.stopAuto();
        }
    }
}
  
  
  
jQuery(document).ready(function() {
   jQuery('#mycarousel').jcarousel({
        vertical: true,
        scroll: 1,
        auto: 3,
     // wrap: "circular",
        itemLoadCallback: itemLoadCallbackFunction     
     
});
  
  
  
});
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900