...

View Full Version : Loading Image before page



dhtmlhelp
07-31-2002, 06:50 PM
Hi,

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.

DHTMLHELP

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

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

image1.src = "yourImage.gif";
</script>
</head>
<body>
Content here...
</body>
</html>
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