PDA

View Full Version : Step Carousel - Starting the carousel with a Panel id



kylu
04-18-2012, 11:09 PM
1) Script Title: Step Carousel Viewer v1.9

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

3) Describe problem:


Good evening everybody, im dealing with an issue here:

I implemented the carousel into a wordpress theme (works fantastic) i would like to develope it more though.

The carousel is placed on the post-pages of the category "x" and displays the thumbnails of all of the posts in a category "x". The posts have id's which I can add to the panels of the carousel.

I would like to start the carousel on page id="xy" with the panel id="xy"

how can i do it?

so far i only discovered how to start the carousel conditioned on the panel number.

any help would be much appreciated..
cheers...

this is the code im using:


<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:false, moveby:1, pause:3000},
panelbehavior: {speed:500, wraparound:true, 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']
oninit:function(){
stepcarousel.stepTo('mygallery', 2) //go to 2nd slide to begin with
}
})
</script>