Tuxedo schreef:
You can check the Image.complete property; example:
img = new Image(100,100);
interval = setInterval('ch eckcomplete()', 100);
img.src = 'someimg';
function checkcomplete() {
if (window['img'].complete) {
alert(1);
clearInterval(w indow['interval']);
}
}
JW
However, this doesn't completely work, because the function
photo_preloaded (PARAMETER) will run regardless of whether the image
finished preloading or not. In normal cases, I do this kind of preloading
without parameters, which works fine, as follows:
>
photo_preloaded (PARAMETER) will run regardless of whether the image
finished preloading or not. In normal cases, I do this kind of preloading
without parameters, which works fine, as follows:
>
img = new Image(100,100);
interval = setInterval('ch eckcomplete()', 100);
img.src = 'someimg';
function checkcomplete() {
if (window['img'].complete) {
alert(1);
clearInterval(w indow['interval']);
}
}
JW
Comment