Random Banner
<?php
function random_banner(){
$banner['url'][] = "http://www.whatever.com";
$banner['banner'][] = "banner1.png";
$banner['url'][] = "http://www.whatever2.com";
$banner['banner'][] = "banner2.png";
$banner['url'][] = "http://www.whatever3.com";
$banner['banner'][] = "banner3.png";
$number = rand(0,count($banner['url'])-1);
echo "<a href=\"". $banner['url'][$number] . "\">
<img src=\"" . $banner['banner'][$number] . "\" />%lt;/a>";
}
?>
This code will disply a random banner when you call the random_banner function.
Just replace the current values in the $banner array with your own and your good to go.
You may add as many banners as u need.
