move = function() { if(this.flag && ++this.elem["scroll"+a] >= this.elem["scroll"+b] - this.elem["client"+b]) { this.elem["scroll"+a] = 0; } }