Closed Thread Icon

Topic awaiting preservation: Progress Bar Not Stopping In FireFox (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=26064" title="Pages that link to Topic awaiting preservation: Progress Bar Not Stopping In FireFox (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Progress Bar Not Stopping In FireFox <span class="small">(Page 1 of 1)</span>\

 
ripvtech
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Jun 2005

posted posted 06-18-2005 17:32

Hello All,
This is my first post on this forum Well any way I'm coding a progress bar for my webpage and I need the bar to be hidden after the loading of a certain number of images are loaded! I have the code working great in IE, however it does not work in Firefox Please help!?!?!


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()

}
}



I'm calling my code with this command:

code:
<script language="javascript">
	
		ImageLoaded = setInterval("Check_Imgs_Load()", 5);
		

	</script>

BillyRayPreachersSon
Bipolar (III) Inmate

From: London
Insane since: Jul 2004

posted 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.

Dan

« BackwardsOnwards »

Show Forum Drop Down Menu