Topic awaiting preservation: Progress Bar Not Stopping In FireFox (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: |
posted 06-18-2005 17:32
Hello All, code: function Check_Imgs_Load() { All_Images = document.images.length temp = new Array(0) for (var i=0;i<All_Images;i++) { if (document.getElementById('imghome').complete) { temp[temp.length] = i } } if (temp.length == All_Images) { clearInterval(ImageLoaded); stop() } }
code: <script language="javascript"> ImageLoaded = setInterval("Check_Imgs_Load()", 5); </script> |
Bipolar (III) Inmate From: London |
posted 06-20-2005 22:56
img.complete is an IE-only property. I would harness the onload event of the image object to do this instead - it will be far more portable. |