Preloading Images

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

Added by JC on 15th November 2007

Comments

There are no comments about this snippet.

Post Comment Github Markdown Supported

You must be logged in to post a comment.

Login here to post a comment