ok, ci ho dato un occhiata: prova così:
Codice PHP:var startStopFader = new Widget.Fader("startStopDemo", images, { autoStart: false });
Event.observe("startButton", "click", function(){
this.writeAttribute('disabled', true);
$('stopButton').writeAttribute('disabled', false);
var fstart = startStopFader.start.bind(startStopFader);
fstart();
});
Event.observe("stopButton", "click", function(){
this.writeAttribute('disabled', true);
$('startButton').writeAttribute('disabled', false);
var fstop = startStopFader.stop.bind(startStopFader)
fstop();
});

Rispondi quotando