michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: if (!this._sliderElement) michael@0: this._sliderElement = document.getAnonymousElementByAttribute(this, "anonid", "slider"); michael@0: return this._sliderElement; michael@0: michael@0: michael@0: michael@0: michael@0: 0) michael@0: this.value = this.min; michael@0: else if (this.max < 0) michael@0: this.value = this.max; michael@0: ]]> michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: var value = this._slider.getAttribute(aAttr); michael@0: var intvalue = parseInt(value, 10); michael@0: if (!isNaN(intvalue)) michael@0: return intvalue; michael@0: return aDefaultValue; michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: this.max) michael@0: intvalue = this.max; michael@0: } michael@0: this._slider.setAttribute(aAttr, intvalue); michael@0: } michael@0: return aValue; michael@0: ]]> michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: startpos) ? newpos : startpos; michael@0: ]]> michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: startpos) ? newpos : startpos; michael@0: ]]> michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: this._userChanged = true; michael@0: this.value = (this.dir == "reverse") ? this.max : this.min; michael@0: this._userChanged = false; michael@0: michael@0: michael@0: this._userChanged = true; michael@0: this.value = (this.dir == "reverse") ? this.min : this.max; michael@0: this._userChanged = false; michael@0: michael@0: michael@0: michael@0: michael@0: