/* ==== animation loop ==== */
run : function (res) {
/* ---- move all images ---- */
var i = this.NF;
while (i--) this.diapos[i].move(res);
/* ---- autoscroll ---- */
if (this.time_out) {
this.time++;
if (this.time > this.time_out) {
this.view += this.time_dir;
if (this.view >= this.NF || this.view < 0) {
this.time_dir = -this.time_dir;
this.view += this.time_dir * 2;
}
this.calc();
this.time = 0;
this.time_out = this.time_inter;
}
}
}
}
|