Example:
http://www.sonyverse.com/forum/showthread.php?t=11
here is my code
return '<img src="' . $link . '" onload="if(largerThan(this.width,700)) {this.width=700;this.alt=\'Click here to see a large version\';}" onmouseover="if(this.alt) this.style.cursor=\'hand\';" onclick="if(this.alt) window.open(\'' . $link . '\');" border="0" />';
in Firefox it resizes fine in IE this is what I get..