Home | All Questions | alt.html FAQ > Client-side Basic Scripting

How do I preload images?

In the <head> of the page

<script type="text/javascript">
 blah=new Image(100,100);
 blah.src="blah.gif";
 blahon=new Image(100,100);
 blahon.src="blahon.gif";
</script>

Recommended Resources

Discussion

Related Questions