zurb / orbit

454 stars 96 forks source link

Start on specific slide #47

Closed darrellmfrench closed 13 years ago

darrellmfrench commented 13 years ago

Is there a way to start the activeSlide on a certain slide from outside of the orbit.1.2.3.js? I want to make activeSlide a global variable and pass it a value from another part of the script

mkelly12 commented 13 years ago

Using our new refactor branch you can trigger the orbit.goto event to jump to a slide at a particular index.

$('yourSliderId').trigger('orbit.goto', 3); // Jump to the forth slide (index 3)

You can run this code after window.load to jump to your starting slide.

k3v3n commented 10 years ago

I'm trying to do the same thing with F5, but it doesn't work. Still looking for a solution.