try
Code:
navigate:function(keyword){ //keyword: "back" or "forth" or the slide number to goto
var slideshow=this,setting=this.setting, goto=this.$imageslides[keyword];
clearTimeout(this.rotatetimer)
if (!goto&&!setting.displaymode.stoponclick && setting.displaymode.type!="manual"){ //if slider should continue auto rotating after nav buttons are clicked on
this.curstep=(keyword=="back")? this.curstep-1 : this.curstep+1 //move curstep counter explicitly back or forth depending on direction of slide
this.rotatetimer=setTimeout(function(){slideshow.rotate()}, setting.displaymode.pause)
}
var dir=(keyword=="back"||(goto&&keyword<this.curslide))? (setting.orientation=="h"? "right" : "down") : (setting.orientation=="h"? "left" : "up")
var targetslide=(keyword=="back")? this.curslide-1 : this.curslide+1
targetslide=goto?keyword:(targetslide<0)? this.$imageslides.length-1 : (targetslide>this.$imageslides.length-1)? 0 : targetslide //wrap around
if (this.animation_isrunning==false)
this.slide(targetslide, dir)
},
Code:
<input type="button" name="" value="GoTo 2" onclick="firstparallaxslider.navigate(2)"/>
Bookmarks