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 = "";
  4. }


Added by JC on 14th November 2007


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