Posted by Nospam on 07/26/06 20:14
As requested
<?
$bannerCounter =1;
$bannerCode[$bannerCounter] = "<a href=\"http://www.site.com/site1\"
target=\"_top\"><iframe
src=\"http://www.site.com/e/cm?t=site1&o=2&p=6&l=bn1&mode=site1&browse=40371
8&=1&fc1=<1=&lc1=&bg1=&f=ifr\" marginwidth=\"0\" marginheight=\"0\"
width=\"120\" height=\"150\" border=\"0\" frameborder=\"0\"
style=\"border:none\;\" scrolling=\"no\"> </iframe></a>\";
$bannerCounter++;
$bannerCode[$bannerCounter] = "<a href=\"http://www.site.com/site2\"
target=\"_top\"><img src=\"http://www.site.com/site1\" width=\"120\"
height=\"600\" alt=\"null\" border=\"0\"/></a> ";
$bannerCounter++;
$bannerCode[$bannerCounter] = "<a href=\"http://www.site.com/site3\"
target=\"_top\"><img src=\"http://www.site.com/site3\" width=\"468\"
height=\"60\" alt=\"Click here !\" border=\"0\"/></a>";
$bannerCounter++;
$bannerAdTotals = $bannerCounter - 1;
if($bannerAdTotals>1)
{
mt_srand((double)microtime() * 1234567);
$bannerPicked = mt_rand(1, $bannerAdTotals);
}
else
{
$bannerPicked = 1;
}
$bannerAd = $bannerCode[$bannerPicked];
?>
$bannerAd = str_replace('"', '\'', $bannerAd);
print("document.write(\"$bannerAd\")");
var_dump($bannerAd);
[Back to original message]
|