Hallo Leute!
kann mir jemand diesen script browserübergreifend umschreiben?
Danke
kann mir jemand diesen script browserübergreifend umschreiben?
Code:
function Fader(object, destOp, rate, delta) {
if(!document.all)
return
if(object != "[object]") {
setTimeout("Fader("+object+","+destOp+","+rate+","+delta+")",0);
return;
}
clearTimeout(FaderTimers[object.sourceIndex]);
diff = destOp - object.filters.alpha.opacity;
direction = 1;
if(object.filters.alpha.opacity > destOp) {
direction = -1;
}
delta = Math.min(direction * diff,delta);
object.filters.alpha.opacity += direction * delta;
if(object.filters.alpha.opacity != destOp) {
FaderObjects[object.sourceIndex] = object;
FaderTimers[object.sourceIndex] = setTimeout("Fader(FaderObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
}
}
Danke