Hab mir den js code mal angesehen und denke es müsste hier zu finden sein???
Code:
/** * Navigates to given page and selects the first image of it.
* Also hides the handles (if set).
* @param {Integer} pageNumber, index of the target page (0-n)
* @param {HTMLElement} selectImage, optionally receives a particular image to select
*/
gotoPage: function(pageNumber, selectImage) {
//if we like to select another image on that page than the first one
selectImage = $pick(selectImage, this.thumbs[pageNumber * this.imagesPerPage]);
var lastPage = Math.ceil(this.thumbs.length / this.imagesPerPage);
if(pageNumber >= 0 && pageNumber < lastPage) {
this.pageContainer.set('tween', {
duration: this.options.pageSpeed,
transition: Fx.Transitions.Quint.easeInOut
});
this.pageContainer.tween('margin-left', this.pageContainer.getFirst().getSize().x * pageNumber * -1);
this.currentPageNumber = pageNumber;
this.select(selectImage);
//update handles
if($defined(this.options.prevHandle)) {
new Fx.Tween(this.options.prevHandle, {duration:this.options.fadeSpeed * 2}).start('opacity', pageNumber == 0 ? 0 : 1);
}
if($defined(this.options.nextHandle)) {
new Fx.Tween(this.options.nextHandle, {duration:this.options.fadeSpeed * 2}).start('opacity', pageNumber == lastPage - 1 ? 0 : 1);
}
}
}
Lesezeichen