Io ho fatto così:
Codice PHP:<?php
switch ($_GET['size'])
{
case 'big' : $img = "http://sito/banners/468x60.jpg"; break;
case 'medium': $img = "http://sito/banners/236x60.gif"; break;
case 'small': $img = "http://sito/banners/120x60.gif"; break;
case 'square': $img = "http://sito/banners/125x125.gif"; break;
default : $img = "http://sito/banners/468x60.jpg"; break;
}
echo "document.write('<a href=\"http://www.sito.it\">');";
echo "document.write('<img src=\"{$img}\" border=\"0\" alt=\"Mio sito\" />');";
echo "document.write('</a>');";
?>

Rispondi quotando