Ein direkte Anfrage an den Ersteller des Scripts ergab folgenden Lösungsansatz:
window.addEvent('domready',function(){
var sampleObjectItems = []; //NUMBER OF PICTURES IN AN ARRAY
//FILL THE ARRAY FOR THE SLIDESHOW
for(var i = 1; i < numberOfPictures; i++){
sampleObjectItems[i] = "{title: " + i+"}";
}
var info6 = $('picture_box').getNext().set('opacity',0.5);
var nS6 = new noobSlide({
mode: 'vertical',
box: $('picture_box'),
items: sampleObjectItems,
//HEIGHT FOR THE PICTURES
size: 490,
addButtons: {
previous: $('prev'),
play: $('play'),
stop: $('stop'),
next: $('next')
},
startItem: -1,
button_event: 'click',
fxOptions: {
duration: 1000,
transition: Fx.Transitions.Back.easeOut,
wait: false
},
onWalk: function(currentItem,currentHandle){
alert(this.currentIndex);
}
});
//walk to next item
nS6.next();
});
entscheidend ist diese Stelle:
onWalk: function(currentItem,currentHandle){
alert(this.currentIndex);
}