Function fired onLoad doesn't know image dimensions

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,207
Latest member
HelenaCani

Latest Threads

Top