alexflom
Newbie
Posts: 1
Registered: 1/28/2009
Location: kiev
Member Is Offline
|
| posted on 1/28/2009 at 01:25 AM |
|
|
Error in tigra calc
in the string:
a_img[j].src = 'img/' + i + '_' + j + '.gif'
of class constructor:
function Tcalculator() {
this.oper_old =
this.oper_old_old =
this.slag_1 =
this.slag_2 =
this.slag_1_old =
this.out_val =
this.p_out = '';
this.t_load = false;
this.TCRisNumber = TCRisNumber;
this.TCRisPoint = TCRisPoint;
this.TCRPopup = TCRPopup;
this.TCRrezult = TCRrezult;
this.TCRmntr = TCRmntr;
// preloading images
var a_img = [], i, j;
for (i = 0; i < 19; i ++) {
a_img = [];
for (j = 0; j < 3; j ++) {
a_img[j] = new Image();
a_img[j].src = 'img/' + i + '_' + j + '.gif'
}
}
}
should be:
a_img[j].src = 'my_tigra_path/img/' + i + '_' + j + '.gif'
Result of your string is server error:
[Wed Jan 28 03:12:16 2009] [error] [client xxx.xxx.xxx.xxx] File does not exist: /home/xxxx/data/www/xxxx.com.ua/img/12_0.gif
|
|
|
|