Snippets v2

Languages
My Snippets

Preloading Images Login or Register to Bookmark this snippet

Description Javascript

This code pre loads an image. 100 and 25 are the width and height respectively.

The Code Download
  1. if (document.images) {
  2.     pic1 = new Image(100,25);
  3.     pic1.src = "http://someplace.com/image1.gif";
  4. }
Credits Contact JC

Added by JC on 14th November, 2007

Comments

There are no comments about this snippet.

Post Comment HTML is allowed

You must be registered and logged in to post a comment.

Login here to post a comment