counter


Username:Password:
///////////////////////////////////

December 9, 2007

Preloading Images within a Web Page

Filed under: Beginning Html — admin @ 1:01 am

If you would like to preload an image so that it will display when the page loads, place the following code between your <HEAD> and </HEAD> tags.

<SCRIPT language=”JavaScript”>
<!–
var preload=new Image();
preload.src=”(image.gif)”;
–>
</SCRIPT>

Change the text indicated in red to your image.


No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment