¡@

Home 

2014/10/16 ¤W¤È 12:06:56

jquery Programming Glossary: real_height

How can I determine if an image has loaded, using Javascript/jQuery?

http://stackoverflow.com/questions/263359/how-can-i-determine-if-an-image-has-loaded-using-javascript-jquery

happen on a small browser window . Edit For anyone wanting to see the code function var REAL_WIDTH #photo .width var REAL_HEIGHT #photo .height window .resize adjust_photo_size adjust_photo_size function adjust_photo_size if REAL_HEIGHT 150 REAL_WIDTH.. .width var REAL_HEIGHT #photo .height window .resize adjust_photo_size adjust_photo_size function adjust_photo_size if REAL_HEIGHT 150 REAL_WIDTH #photo .width REAL_HEIGHT #photo .height if REAL_HEIGHT 150 image not loaded.. try again in a quarter second.. .resize adjust_photo_size adjust_photo_size function adjust_photo_size if REAL_HEIGHT 150 REAL_WIDTH #photo .width REAL_HEIGHT #photo .height if REAL_HEIGHT 150 image not loaded.. try again in a quarter second setTimeout adjust_photo_size 250 return..