Return to Snippet

Revision: 17379
at September 2, 2009 13:58 by nd6


Initial Code
$('#myImage').attr('src', 'image.jpg').load(function() {  
  alert('Image Loaded');  
});

Initial URL
http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx

Initial Description
Taken from TVIDesign's 25 Excellent jQuery tips

Initial Title
jQuery run code after image loads

Initial Tags
javascript, image, jquery, load

Initial Language
jQuery