Home > Posts > “onload” event for an image in Internet Explorer

“onload” event for an image in Internet Explorer

I recently had lots of issues with an online portfolio website I’m making for my wife (see the online portfolio link at http://www.zoomicon.com/mavrommati/portfolio).

I have made a dynamic image resizing script, but IE was showing the image with wrong dimensions. The trick to fix the issue was to remove the image and its container right after the image had been loaded and place it again. Found some discussion on the web about this issue with IE by a guy that was making a thumbnail gallery. Mozilla has its own issues, not calling onresize event for the container, thus  not resizing the image when the window is changed size. Safari has even more issues, I wonder what Opera does with it…

Advertisements
Categories: Posts
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: