If by highlight the current panel you mean apply some visual cue to it (ie: a red border), yes that's possible using the onslide() event handler of the script, plus the undocumented fact that within this event handler, you can reference all the slides wthin the Carousel using the code this.$panels[i], where i is the slide (starting from 0) you wish to access. With that said, the below applies a red border to the current slide:
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:3000},
panelbehavior: {speed:500, wraparound:false, 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 ['external', 'path_to_external_file']
onslide: function(){
for (var i=0; i<statusC; i++){
var withinRange=(i>=statusA-1 && i<=statusB-1) //check whether this slide falls within range of active slides currently in view
if (withinRange)
this.$panels[i].style.border="3px solid red"
else
this.$panels[i].style.border="3px solid white"
}
}
})
This is a little cumbersome I agree. The next time the script is updated I'll work this feature directly into the script.
Bookmarks