Results 1 to 3 of 3

Thread: Add a start index to Step Carousel Viewer v1.9?

  1. #1
    Join Date
    Oct 2013
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Add a start index to Step Carousel Viewer v1.9?

    1) Script Title: Step Carousel Viewer v1.9

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

    3) Describe problem: I was wondering if it would be possible to add a start index to this script so I can change which image would it start with on page load

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Sure, just add the red part to the on page setup part of the script:

    Code:
    <script type="text/javascript">
    
    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: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 ['ajax', 'path_to_external_file']
    	oninit: function(){
    		stepcarousel.stepTo('mygallery', 3);
    	}
    })
    
    </script>
    Where 'mygallery' is the galleryid and 3 is the index of the panel you want it to start with.

    Don't miss the added comma (also red) after the contenttype property.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    tellisonii (11-02-2013)

  4. #3
    Join Date
    Oct 2013
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    thanks jscheuer1 for the obvious response. for some reason i completely forgot about this functionality. thanks again

Similar Threads

  1. Step Carousel Viewer (auto step)
    By Mission Impossible in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 04-22-2013, 11:48 AM
  2. Step Carousel Viewer v1.9 bug in jQ 1.8.x+
    By jscheuer1 in forum Bug reports
    Replies: 0
    Last Post: 11-23-2012, 05:12 PM
  3. Step Carousel Viewer - Help..
    By ikon in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 04-06-2011, 05:11 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 help?
    By CoolD78 in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 12-10-2008, 11:28 PM

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
  •