Results 1 to 3 of 3

Thread: Go to First Feature Slide with every home page refresh

  1. #1
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Go to First Feature Slide with every home page refresh

    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.


    [CODE]

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

    oninit:function(){
    isloaded=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']
    })

    [CODE]

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Have you tried simply disabling persistence:

    Code:
    panelbehavior: {speed:500, wraparound:true, persist:false},
    DD Admin

  3. #3
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Resolved

    That worked perfectly. Thanks you!!!! Much appreciated.

    Josh

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •