‹‹ cycle homejQuery Cycle Plugin - 'goto' Demo

To set the current slide index programatically, call cycle and pass it an int value representing the zero-based index of the slide to be shown.

For demonstration purposes, this page contains a slideshow with three slides and the third slide is set to be displayed initially.

$('#s1').cycle({
    timeout: 0,
    speed:   300,
    startingSlide: 2
});
$('#goto1').click(function() {
    $('#s1').cycle(0);
    return false;
});

$('#goto2').click(function() { 
    $('#s1').cycle(1); 
    return false; 
});