Sunday, February 6, 2011

javascript checking if image is fully loaded

img = new Image();
img.src = "path_to_your_image.jpg";
img.onload = function() { some_action();};

No comments:

Post a Comment