I use this simple script
PHP Code:
<?php
/*
Notes: shows a random banner on the webpage, using weighting system.
*/
## Configure this acc. to your needs ##
$Ad[0] = '';
$Ad[1] = '';
$Ad[2] = '';
$Ad[3] = '';
$Ad[5] = '';
$Weight[0]=3;
$Weight[1]=5;
$Weight[2]=1;
$Weight[3]=1;
$Weight[4]=1;
$Weight[5]=3;
$sum =0;
for($i=0;$i<count($Weight);$i++)
$sum+=$Weight[$i];
$ShowAd = rand(0, $sum - 1);
for($i=0;$i<count($Weight);$i++)
{
if($ShowAd<=$Weight[$i])
{
$ShowAd=$i;
break;
}
else
$ShowAd-=$Weight[$i];
}
echo $Ad[$ShowAd];
?>
You can add each code for each banner into AD01 ect, and if you want more than 5 just add 6 onto it.
Dont know if this will be any help to you.