- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
show: function () {
this.number_x++;
if(this.number_x-1>=this.frames_x) {
this.number_x=1;
this.number_y++;
if(this.number_y-1>=this.frames_y) {
this.number_y=1;
if(this.playandstop) {
this.stop();
}
}
}
if(this.key) {
var left;
var top;
(this.reverse)?left=(this.frames_x-this.number_x)*this.frame_x:left=(this.number_x-1)*this.frame_x;
(this.reverse)?top=(this.frames_y-this.number_y)*this.frame_y:top=(this.number_y-1)*this.frame_y;
$$(this.id).$$('marginLeft',''+-left+'px').$$('marginTop',''+-top+'px');
var th = this;
this.timer=setTimeout(function () { th.show(); },this.speed);
}
else {
this.next();
}
},
Комментарии (0) RSS
Добавить комментарий