/* * === Slider Class === * * updated 2003/07/02 * * mail : peace@skipup.com * home : http://www.skipup.com/~peace/ */ /** * */ function class__Slider__(window){ var classId = Object.getClassName(arguments.callee); /** * Slider(int orientation, Dimension size, Point3 position) * * Slider(int orientation, Point3 position) * size = [100, 10]; * * Slider(Point3 position) * orientation = HORIZONTAL * size = [100, 10]; */ var F = window[classId] = function(){ if (this.constructor !== F) this.constructor = F; var position = new Point3(); this.$size = new Dimension(); var a = arguments; switch (a.length) { case 3 : this.$orientation = a[0]; this.$size.set(a[1]); position.set(a[2]); break; case 2 : this.$orientation = a[0]; position.set(a[1]); this.$size.set(100, 10); break; case 1 : this.$orientation = F.HORIZONTAL; position.set(a[0]); this.$size.set(100, 10); break; } /** * ユニークID. */ this.$id = ID + new Date().getTime(); for (var i = 0; i < ELEMENTS_ID.length; i++) { var elementId = ELEMENTS_ID[i]; var spanId = this.$id + "_" + elementId.toUpperCase(); document.writeln( "