M
Mat
Hi all,
I have a function that resizes images after they have loaded. To fire
this function for each image, I use: onLoad="resizeImages(this,110)"
(110 is the maximum size for the longest side of the image.) The
function then uses the reference passed down with' this' to resize the
image. Most of the time, the images are resized fine, but sometimes,
the function can't get the width and height, it just says they are 0.
onLoad is only supposed to fire when the image has finished loading,
so why doesn't it know what size the image is?
ta
Mat
I have a function that resizes images after they have loaded. To fire
this function for each image, I use: onLoad="resizeImages(this,110)"
(110 is the maximum size for the longest side of the image.) The
function then uses the reference passed down with' this' to resize the
image. Most of the time, the images are resized fine, but sometimes,
the function can't get the width and height, it just says they are 0.
onLoad is only supposed to fire when the image has finished loading,
so why doesn't it know what size the image is?
ta
Mat