View Single Post
  #2 (permalink)  
Old Dec 21st, 2006, 14:39
Ryan Fait's Avatar
Ryan Fait Ryan Fait is offline
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Detecting "image loaded successfully"

You need to create a loop and check for

Code: Select all
// Declare the image
image = new Image;
image.src = "image.jpg";
// Use a loop with the following code in it
if (image.complete) {
    alert("The image is completely loaded");
}
Reply With Quote