Quote:
Originally Posted by Playa82
once again for everybody:
/* Start Image RESIZE */
$navigator_user_agent = ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) ? strtolower( $_SERVER['HTTP_USER_AGENT'] ) : '';
if (stristr($navigator_user_agent, "msie")) {
return '<a href="' . $link . '" class="highslide" onclick="return hs.expand(this)" ><img src="' . $link . '" border="0" alt="" style="width: expression(this.width > 340 ? 180 : true);" /></a>';
} else {
return '<a href="' . $link . '" class="highslide" onclick="return hs.expand(this)" ><img src="' . $link . '" border="0" alt="" style="max-width: 430px;" /></a>';
}
/* End Image RESIZE */
----------------------------------------------------------------------------------------------------
(this.width > 340 ? 180 : true);
this width 340 ? means max size before the hack make it small to this size ? 180
u have to edit both numbers !!!
style="max-width: 430px;
here u have to add ur max size again !!!
i hope my english is not that bad ;-)
|
Your English is a little hard to understand. You're not explaining what exactly has to be entered in the
red. I entered all kinds of sizes and it doesn't work. Give an example of what number we have to input.
If you were doing it for your forum, what would you enter in those fields?