jQuery imageReady Plugin Example
Check out the console log (F12)