Sunday, 18 August 2013

Need to stop the slider at last image

Need to stop the slider at last image

Iam making the image slider all done but cant stop at the last image
Following are the code
var element=$(container);
element.find('ul').addClass('slides');
var slides = element.find('ul.slides li');
var targetSlide=0;
$.skdslider.currentSlide=0;
$.skdslider.currentState='pause';
$.skdslider.createNav(element,slides, config);
slides.eq(targetSlide).show();
if (config.autoStart==true){
$.skdslider.currentState='play';
$.skdslider.interval=setTimeout(function() {
$.skdslider.playSlide(element,slides, config);
}, config.delay);
}
};

No comments:

Post a Comment