M
Mark
There are no problems with the following image loading code fragment
and window.status assigments/updates in IE but in Firefox window.status
fails to update. Any suggestions?
(function imageLoader() {
for (i=0; i <= 358; i+=2) {
imgSRC = 'cue'+i+'.gif';
cues = new Image();
cues.cnt = 0;
cues.onload = imagesToLoad(i);
cues.onerror = createErrorHandler(imgSRC);
cues.src = imgSRC;
}
})();
function imagesToLoad(i) {
return function () {
if ((i += 2) <= 358) window.status = (179 - (i>>1)) + ' images left
to load.';
else window.status = 'image loading completed.';
}
}
function createErrorHandler(imgSRC) {
return function () {
this.src = (this.cnt++ < 3)? imgSRC : 'missing.gif';
}
}
and window.status assigments/updates in IE but in Firefox window.status
fails to update. Any suggestions?
(function imageLoader() {
for (i=0; i <= 358; i+=2) {
imgSRC = 'cue'+i+'.gif';
cues = new Image();
cues.cnt = 0;
cues.onload = imagesToLoad(i);
cues.onerror = createErrorHandler(imgSRC);
cues.src = imgSRC;
}
})();
function imagesToLoad(i) {
return function () {
if ((i += 2) <= 358) window.status = (179 - (i>>1)) + ' images left
to load.';
else window.status = 'image loading completed.';
}
}
function createErrorHandler(imgSRC) {
return function () {
this.src = (this.cnt++ < 3)? imgSRC : 'missing.gif';
}
}