Here's a modified version with "Click to enlarge image" text on top/bottom...Just a quick edit...
PHP Code:
/* Start Image RESIZE */
$navigator_user_agent = ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) ? strtolower( $_SERVER['HTTP_USER_AGENT'] ) : '';
if (stristr($navigator_user_agent, "msie")) {
$image_size_link = '
<img src="' . $link . '" border="0" alt="" style="width: expression(this.width > 640 ? 480 : true);" />';
}
else {
$image_size_link = '<img src="' . $link . '" border="0" alt="" style="max-width: 730px;" />';
}
$image_size = '
<table cellpadding="0" cellspacing="0" border="1">
<tr><td style="background-color:#000000;color:#FFFFFF;">
<a href="' . $link . '" target="_blank" style="color:#FFFFFF;text-decoration:none;">Click to enlarge image</a>
</td></tr>
<tr><td><a href="' . $link . '" target="_blank">' . $image_size_link . '</a></td></tr>
<tr><td style="background-color:#000000;color:#FFFFFF;">
<a href="' . $link . '" target="_blank" style="color:#FFFFFF;text-decoration:none;">Click to enlarge image</a>
</td></tr>
</table>
';
return $image_size;
/* End Image RESIZE */