Results 1 to 2 of 2

Thread: Step Carousel Viewer - customizing the viewer

  1. #1
    Join Date
    Feb 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Step Carousel Viewer - customizing the viewer

    1) Script Title: Step Carousel Viewer

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

    3) Describe problem:

    Is there any way to have the viewer start at the 2nd panel (or any besides the first), and then CENTER the panel rather than having it aligned to the left of the belt?

  2. #2
    Join Date
    Aug 2004
    Posts
    9,918
    Thanks
    3
    Thanked 969 Times in 957 Posts
    Blog Entries
    15

    Default

    Getting the carousel to start at a particular panel is simple enough. You would just call the stepTo() method of the script. You'll also want to do this when the carousel has loaded fully, which can be done by calling any code inside the oninit event handler:

    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, wrapbehavior:'slide', persist:false},
    	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) // step to 2nd panel
    	}
    })
    Regarding the 2nd part of your question, there's no easy way to have a panel aligned anything but to the left of the container unfortunately, as those are the built in stopping points of each panel.
    DD Admin

Similar Threads

  1. Step Carousel Viewer v1.8
    By jasonsilver in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 06-30-2010, 05:17 PM
  2. Customizing Step Carousel Viewer v1.8
    By vlastanovak in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 05-23-2010, 08:22 PM
  3. Resolved Step Carousel Viewer v1.6.1
    By armababy in forum Dynamic Drive scripts help
    Replies: 7
    Last Post: 01-24-2009, 10:00 PM
  4. loading Step Carousel Viewer in middle of carousel
    By sam4682 in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 12-31-2008, 11:07 PM
  5. Step Carousel Viewer v1.4
    By jboy6t9 in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 09-19-2008, 02:25 AM

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
  •