-// img.onload = function() { display_image(width, height, evt, filename, "preload"); }
- img.onload = "display_image(" + width + "," + height + ",\"" + evt + "\",\"" + filename + "\",\"preload\");";
+ if (document.all) { // IE-specific
+ img.onload = "display_image(" + width + "," + height + ",\"" + evt + "\",\"" + filename + "\",\"preload\");";
+ } else {
+ img.onload = function() { display_image(width, height, evt, filename, "preload"); }
+ }