Results 1 to 5 of 5

Thread: Stepcarousel - Return to First Panel

  1. #1
    Join Date
    May 2010
    Posts
    15
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Stepcarousel - Return to First Panel

    1) Script Title: Setpcarousel

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...epcarousel.htm

    3) Describe problem:

    Here's the site I'm working on: http://www.goodwebdesignuk.com/jacks/.

    My problem is that if you are looking through, say, the rings: http://www.goodwebdesignuk.com/jacks...3xdrops18Y.php and you, say, move through to the fifth panel and then you click back on "rings" from the drop-down menu, the top part of the page returns to the correct ring, but the panel remains on panel 5. How can I ensure that if you click on "rings" (from the drop-down menu) the panel also returns to the first panel?

    Thank you in advance.

    Vicky

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

    Default

    Hmm sounds like you simply want persistence turned off. Try changing the code in red below (to false):

    Code:
    stepcarousel.setup({
            galleryid: 'bottom', //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:false, persist:false},
            defaultbuttons: {enable: true, moveby: 8, leftnav: ['../../images/arrow_left.gif', 10, 80], rightnav: ['../../images/arrow_right.gif', -30, 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']
    })
    DD Admin

  3. #3
    Join Date
    May 2010
    Posts
    15
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Stepcarousel - Return to First Panel

    Thank you for your reply.

    The problem is that by making persist:false, it returns to the first panel each time you select to view one of the items of jewellery - as it does now for the commissions. What I need is for it to return to the first panel of, say, rings when you click on rings from the drop-down menu at the top of the screen, after you've been browsing through the rings and got to, say, panel 5. Hope this makes sense?

    Do you have any ideas?

    Vicky

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

    Default

    Hmm so you want the script in general to remember the position of the carousel, say when the user reloads the page or goes to another page containing the carousel, except when the user clicks on the "rings" link from the drop down menu to get there?
    DD Admin

  5. #5
    Join Date
    May 2010
    Posts
    15
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Stepcarousel - Return to First Panel

    Yes, I think that's it - it's very hard to describe.

    Basically, I would like the "page" to match the carousel that is below it, which doesn't happen if you, say, click on rings from the drop-down menu if you've been browsing through the different panels. The panel remains where it is and the page above it changes to the link from the drop-down menu.

    Same thing happens if you move onto, say, necklaces, and then return to rings (and vice-versa and with all drop-down links that have the carousel) - you return the panel you were last at with the page that corresponds to the drop-down menu.

    Oh, I hope that's explained it.

    Thank you for your patience with this.

    Vicky

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
  •