2 * QLIB 1.0 Box Resource
\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
11 function QBoxRes(t, r, b, l, tc, tr, mr, br, bc, bl, ml, tl, bgcolor, bgtile, effects, opacity) {
\r
12 var args = QBoxRes.arguments.length;
\r
17 this.TC = new Image();
\r
19 this.TR = new Image(r, t);
\r
21 this.MR = new Image();
\r
23 this.BR = new Image(r, b);
\r
25 this.BC = new Image();
\r
27 this.BL = new Image(l, b);
\r
29 this.ML = new Image();
\r
31 this.TL = new Image(l, t);
\r
33 this.bgcolor = bgcolor || "#FFFFFF";
\r
35 this.bgtile = new Image();
\r
36 this.bgtile.src = bgtile;
\r
38 this.bgtile = false;
\r
40 this.effects = (args > 13) ? effects : null;
\r
41 this.opacity = (args > 14) ? opacity : null;
\r