View Full Version : Go to First Feature Slide with every home page refresh

09-29-2009, 05:34 AM
I'm trying to make the the first (slider) slide appear upon every home page refresh. Because the session gets cached in the browser, the home page often returns to whatever slide the user was on when they exited the page. I want to return to the first slide upon browser refresh/reload.

After reading a bit I tried the code below, however it doesn't work for me. I get a windows horizonal and vertical scroll bar when I add this code and an error message that reads " There is an error with your setup of Carousel Viewer 'myGallery'!

Any help is MUCH appreciated.


// For instructions how how to modify go to this URL
// http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm
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:6000},
panelbehavior: {speed:500, wraparound:true, persist:true},

stepcarousel.stepTo('mygallery', 1)

defaultbuttons: {enable: false, 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']


09-30-2009, 12:47 AM
Have you tried simply disabling persistence:

panelbehavior: {speed:500, wraparound:true, persist:false},

10-01-2009, 03:27 PM
That worked perfectly. Thanks you!!!! Much appreciated.