JavaScript loading images

Hi Guys!

I have a website that has some large images on it (large in file size) and so I am looking for a javascript function that displays a “Loading images…” icon in place of the images when they are being loaded. The images should not display until they have finished loading.

Can anyone point me to a Javascript function that does what I need?