Monthly Archives: February 2012

Slicing an Image into Tiles in JavaScript

When dealing with a large number of images, sometimes it’s easier to group all of them in a single file rather than making a file for each image. This may make it easier to track related images, say, a group … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Preloading Images in JavaScript

In order to display an image in JavaScript, you can create a new Image element, set its src property to the URL of an image file, and then append it to the HTML document. However, loading the image can take … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment