|
helper php, from line 795: change the complete function
function fptn_calcsize($srcx, $srcy, &$forcedwidth, &$forcedheight, $aspect)
{
if ($srcx > $srcy && $srcx != 468) {
$forcedwidth = &$forcedwidth;
$forcedheight = round( $forcedwidth / ($srcx/$srcy));
}
else if ($srcx < $srcy && $srcx != 468) {
$forcedheight = &$forcedheight;
$forcedwidth = round ( $forcedheight / ($srcy / $srcx));
}
else if ($srcx = 468) {
$forcedwidth = 468;
$forcedheight = 60;
}
}
May be there is some bug, but I've made it for my own page and it seems to work. I put an extra function into it, if there is a standard 468x60 banner, itt leaves it with it's original size.
|