View Full Version : Loading Image before page

07-31-2002, 05:50 PM

i have an image i want to load before any other element in the page. is there a simple tiny but very effective script to do this.


07-31-2002, 05:55 PM
You could pre-load the image in the head section of the page, like so:

<script language="JavaScript" type="text/javascript">
image1 = new Image();

image1.src = "yourImage.gif";
Content here...
Just change "yourImage.gif" to the name of the image you want to pre-load.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum