DHTML progress bar for glacial rate adding and editing, closes: Bug#1100
[freeside.git] / httemplate / elements / qlib / box.js
1 /**\r
2  * QLIB 1.0 Box Control\r
3  * Copyright (C) 2002 2003, Quazzle.com Serge Dolgov\r
4  * This program is free software; you can redistribute it and/or\r
5  * modify it under the terms of the GNU General Public License\r
6  * as published by the Free Software Foundation; either version 2\r
7  * of the License, or (at your option) any later version.\r
8  * http://qlib.quazzle.com\r
9  */\r
10 \r
11 function QBox(parent, name, res, x, y, width, height, body, visible, effects, opacity, zindex) {\r
12     this.init(parent, name);\r
13     if (this.res = res) {\r
14         this.x = x - 0;\r
15         this.y = y - 0;\r
16         this.width = width - 0;\r
17         this.height = (typeof(height) == "number") ? height : null;\r
18         this.body = body || " ";\r
19         var j = QBox.arguments.length;\r
20         this.visible = (j > 8) ? visible : true;\r
21         this.effects = (j > 9) ? effects : (res.effects || 0);\r
22         this.opacity = (j > 10) ? opacity : (res.opacity != null ? res.opacity : 100);\r
23         this.zindex  = (j > 11) ? zindex : null;\r
24         this.create();\r
25     } else {\r
26         this.document.write("invalid resource");\r
27     }\r
28 }\r
29 QBox.prototype = new QBoxCtrl();\r