PDA

View Full Version : Step Carousel Viewer



jeyush
09-21-2010, 02:13 PM
1) Script Title: Step Carousel Viewer

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm

3) Describe problem: I have been using Version 1.9 and I want that script behave like round view,

when last image come it automatically goes to first image.

My page:

cellurcell.com/index.php

Can anybody help me out.

jscheuer1
09-21-2010, 03:26 PM
Where you have:


<script type="text/javascript">

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:3000},
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']
})

</script>

To enable the viewer to return to the beginning from its end and visa versa, change that to:


panelbehavior: {speed:500, wraparound:true, wrapbehavior:'slide', persist:true},

Where it has:


wrapbehavior:'slide'

you may use instead:


wrapbehavior:'pushpull'

Each gives a slightly different effect.