Yabancı bir sitede denk gelmişti afiet olsun
<?php
//You will have to change the ban1, ban2, and ban3 variables. You can change these links to point at the images you want displayed.
//You will have to change the url1, url2, and url3 variables. You want these to be urls of the pages you want to link to.
$ban1 = "http://banneradresi.com/.gif";
$url1 = "http://www.siteadresi.com";
$ban2 = "http://banneradresi.com/.gif";
$url2 = "http://www.siteadresi.com/";
$ban3 = "http://banneradresi.com/.gif";
$url3 = "http://www.siteadresi.com";
//Random number between 1 and number of banners.
$randomNum = rand (1,3);
//Select the banner of the random number
$image = ${'ban'.$randomNum};
//Url of the random number
$url= ${'url'.$randomNum};
//Prints out the link of the banner and the image of the banner
Print "<a href=".$url." mce_href=".$url."><img src=".$image." border=0></a>";
?>