PDA

Click to See Complete Forum and Search --> : how do you do[Loading Image...] - Help Needed


modpluz
Dec 22nd, 2006, 10:41 AM
hi guyz,

i've seen these on some website(so i know its possible).

pls how do i check if an image have been loaded.

for ex.
i have a thumbnail image i want to display... and pending the time it'll finish
loading i want to display an image that says "Loading Image..."

how do i do that?

mendhak
Dec 23rd, 2006, 04:58 PM
The 'Loading image' animation is nothing but a, heh, image (gif) that loops infinitely until the page that contains the larger image has loaded. In the onload event of the body of the page that contains the large image, that 'loading image' image is simply hidden away.

modpluz
Dec 24th, 2006, 03:03 AM
yeah i know... what i want to know is how to know when the original image has finished loading.

mendhak
Dec 24th, 2006, 06:19 AM
The <body> tag's onLoad event.

modpluz
Dec 24th, 2006, 05:23 PM
The <body> tag's onLoad event.


what does the onload event of the page's got to do with an image load status?
i just don't get it