Normally to stop the Carousel when a panel is clicked on is to make use of the onpanelclick event handler of the script and calling the method that cancels the auto rotation:
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:1000},
panelbehavior: {speed:500, wraparound:false, wrapbehavior:'slide', persist:true},
defaultbuttons: {enable: true, moveby: 1, leftnav: ['http://i34.tinypic.com/317e0s5.gif', -5, 80], rightnav: ['http://i38.tinypic.com/33o7di8.gif', -20, 80]},
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']
onpanelclick:function(){
stepcarousel.stopautostep(this)
}
})
In your case though it doesn't work, since JavaScript isn't able to detect a click on a Flash object like the YouTube video. There's probably a way around this, though I'm not familiar with Flash. FYI once you've figured it out (a good start might be here), the JavaScript method to call outside the Carousel Initialization code to stop a Carousel is:
Code:
stepcarousel.stopautostep(stepcarousel.configholder['galleryid')
Where "galleryid" is the ID of your Carousel container.
Bookmarks