Click to See Complete Forum and Search --> : Display image before a page loads.


Domain-K-
March 24th, 2008, 12:44 PM
Hi all,

I have been stuck here for a long time and need some serious help. I need to display an image for a second before a web page loads.

1. The image wont be displayed while the page loads, it will be displayed before the page loads.

2. The image will show for one second and the disappear.

I will really appreciate any help with this. Thanks.

PeejAvery
March 25th, 2008, 09:03 AM
The browser has complete control over what it loads. You cannot override it to tell it to load your image first.

You can, however, use the onload event of the document. Then have it show the image. This way, you can ensure that it is even loaded by the time it is shown.