Unless you edited the script, which you shouldn't do for this, there is no stepcarouselA or stepcarouselB, follow the instructions on the demo page using unique values for the red items:
Code:
<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
panelbehavior: {speed:300, wraparound:false, persist:true},
defaultbuttons: {enable: true, moveby: 1, leftnav: ['arrowl.gif', -10, 100], rightnav: ['arrowr.gif', -10, 100]},
statusvars: ['statusA', 'statusB', 'statusC'], // Register 3 "status" variables
contenttype: ['inline'] // content type <--No comma following the very last parameter, always!
})
</script>
Then in your markup, these must be reflected, the unique id and two unique classes for that carousel:
Code:
<div id="mygallery" class="stepcarousel">
<div class="belt">
<div class="panel">
Panel 1 content here...
</div>
<div class="panel">
Panel 2 content here...
</div>
<div class="panel">
Panel 3 content here...
</div>
</div>
</div>
All carousels get the stepcarousel class as shown.
For a second gallery:
Code:
<script type="text/javascript">
stepcarousel.setup({
galleryid: 'mygallery2', //id of carousel DIV
beltclass: 'belt2', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'panel2', //class of panel DIVs each holding content
panelbehavior: {speed:300, wraparound:false, persist:true},
defaultbuttons: {enable: true, moveby: 1, leftnav: ['arrowl.gif', -10, 100], rightnav: ['arrowr.gif', -10, 100]},
statusvars: ['statusA', 'statusB', 'statusC'], // Register 3 "status" variables
contenttype: ['inline'] // content type <--No comma following the very last parameter, always!
})
</script>
And:
Code:
<div id="mygallery2" class="stepcarousel">
<div class="belt2">
<div class="panel2">
Panel 1 content here...
</div>
<div class="panel2">
Panel 2 content here...
</div>
<div class="panel2">
Panel 3 content here...
</div>
</div>
</div>
To make controls for the second one:
Code:
<a href="javascript:stepcarousel.stepTo('mygallery2', 1)">To 1st Panel</a>
<a href="javascript:stepcarousel.stepTo('mygallery2', 2)">To 2nd Panel</a>
<a href="javascript:stepcarousel.stepTo('mygallery2', 3)">To 3rd Panel</a>
If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks