Code:
stepcarousel.setup({
galleryid: 'mygallery', //id of carousel DIV
beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'panel', //class of panel DIVs each holding content
autostep: {enable:true, moveby:1, pause:2500},
panelbehavior: {speed:1000, wraparound:false, persist:true},
defaultbuttons: {enable: true, moveby: 3, leftnav: ['http://www.labtestsonline.org/images/redesign/common/flag_nav_left.gif', -9, 9], rightnav: ['http://www.labtestsonline.org/images/redesign/common/flag_nav_right.gif', -4, 9]},
statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
,oninit:function(){ // sliding effect here
jQuery('ul.belt').hide().css({"display" : "none", "left" : "700px"}).show().animate({"left": "-=700px"}, 5000);
}
});
}
/*
* no sliding (animate) and auto advance (autostep) of flags after first visit to page
*/
else {
stepcarousel.setup({
galleryid: 'mygallery', //id of carousel DIV
beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'panel', //class of panel DIVs each holding content
panelbehavior: {speed:1000, wraparound:false, persist:true},
defaultbuttons: {enable: true, moveby: 3, leftnav: ['http://www.labtestsonline.org/images/redesign/common/flag_nav_left.gif', -9, 9], rightnav: ['http://www.labtestsonline.org/images/redesign/common/flag_nav_right.gif', -4, 9]},
statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
});
}
Bookmarks