DHTML progress bar for glacial rate adding and editing, closes: Bug#1100
[freeside.git] / httemplate / elements / qlib / imagelist.js
diff --git a/httemplate/elements/qlib/imagelist.js b/httemplate/elements/qlib/imagelist.js
new file mode 100644 (file)
index 0000000..9f12de0
--- /dev/null
@@ -0,0 +1,25 @@
+/**\r
+ * QLIB 1.0 ImageList Resource\r
+ * Copyright (C) 2002 2003, Quazzle.com Serge Dolgov\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ * http://qlib.quazzle.com\r
+ */\r
+\r
+function QImageList(width, height) {\r
+    var len = QImageList.arguments.length - 2;\r
+    if (len > 0) {\r
+        this.list = new Array(len);\r
+        this.length = len;\r
+        this.width = width;\r
+        this.height = height;\r
+        var im;\r
+        for (var j=0; j<len; j++) {\r
+            im = new Image(width, height);\r
+            im.src = QImageList.arguments[j + 2];\r
+            this.list[j] = im;\r
+        }\r
+    }\r
+}
\ No newline at end of file