PDA

View Full Version : auto change image Step Carousel Viewer



afcbob
07-14-2010, 07:08 PM
1) Script Title: auto change image

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

3) Describe problem: on the www.host2design.co.uk they have Step Carousel Viewer change images by its self every 5 sec how do i get this done

Any help would be great

azoomer
07-14-2010, 07:19 PM
Looking at the sourcecode of the page at www.host2design.co.uk I see this

<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:5000},
panelbehavior: {speed:500, wraparound:false, persist:false},
defaultbuttons: {enable: true, moveby: 1, leftnav: ['images/left_scroll.gif', 5, 120], rightnav: ['images/right_scroll.gif', -50, 120]},
statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
})

</script>
So i guess that's how they do it.