次のコードは、スプライト イメージをループし、毎秒 -120 移動しますが、何らかの理由で、0 から -120 にジャンプし、次に -240 ではなく 120 にジャンプします。
thismarginLeft = $this.css("margin-left").replace(/[^0-9]/g,'');
if(thismarginLeft < -360 || thismarginLeft == 0){
thismarginLeft = thismarginLeft - 120;
if(thismarginLeft < -360){
thismarginLeft = 0;
}
}