View Single Post
Old 10-11-2009, 09:07 AM  
JJdotAM
Registered User
 
Join Date: Apr 2009
Posts: 25
Quote:
Originally Posted by Killswitch View Post
Code:
<?php
$html[0] = '<a href="link here"><img src="banner here" /></a>';
$html[1] = '<a href="link here"><img src="banner here" /></a>';
$html[2] = '<a href="link here"><img src="banner here" /></a>';
$html[3] = '<a href="link here"><img src="banner here" /></a>';
$html[4] = '<a href="link here"><img src="banner here" /></a>';
$r = rand(0, count($html));
echo $html[$r];
?>
Quick and dirty way.
This will change the ad with every page load? Where is the code placed? thx
JJdotAM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote