Hey guys, here's one of my new php scripts i just coded and wanted to share with you, it shows random image link up to 5 random images but if you want more random image links you can contact me i will increase the number, the php code is :
The demo of the script can be found HERE
and the full script with default banners is attached
PHP Code:
<?php
echo '<style type="text/css">
.ads
{
background-color:#eaeaae;
}
img
{
width:120px;
height:30px;
border:-1px;
}
a
{
color:red;
font-weight:bold;
text-decoration:none;
}
</style>';
echo '<div class=\'ads\'>';
$num = 5; #Put the number of random links you want here, maximum is 5
$ads = rand(1,$num);
#Please change links and banner addresses to suit your needs
$ad1 = '<a href=\'http://libra.wen.ru\'>
<img src=\'banner1.gif\' alt=\'libra\'/></a>';
$ad2 = '<a href=\'http://s3nzo.wen.ru\'>
<img src=\'banner2.gif\' alt=\'s3nzo.wen.ru\'/></a>';
$ad3 = '<a href=\'http://m-phone.info/?id=konvictmobi\'>
<img src=\'banner3.gif\' alt=\'m-phone\'/></a>';
$ad4 = '<a href=\'http://wap.konvict.mobi/?id=konvictmobi\'>
<img src=\'banner4.gif\' alt=\'konvict.mobi\'/></a>';
$ad5 = '<a href=\'http://bluechild.co.cc\'>
<img src=\'banner5.gif\' alt=\'BlueChild\'/></a>';
$s3nzo = '<a href=\'http://konvict.mobi\'>KONVICT.mobi</a>';
$ad = 'Powered by';
switch($ads)
{
case 1 : print $ad1.'<br>';
break;
case 2 : print $ad2.'<br>';
break;
case 3 : print $ad3.'<br>';
break;
case 4 : print $ad4.'<br>';
break;
case 5 : print $ad5.'<br>';
break;
default : print $s3nzo.'<br>';
}
echo $ad.' '.$s3nzo.'</div>';
?>
and the full script with default banners is attached
Comment