Return to Snippet

Revision: 27313
at June 2, 2010 06:15 by hotdiggity


Initial Code
<?php
$bannerAd[1] = '<a href="[~267~]"><img src="banner1.png" alt="Banner1" /></a>';
$bannerAd[2] = '<a href="[~265~]"><img src="banner2.png" alt="Banner2" /></a>';
$adCount = count($bannerAd);
$randomAdNumber = mt_rand(1, $adCount);
echo $bannerAd[$randomAdNumber];
?>

Initial URL

                                

Initial Description

                                

Initial Title
Simple Banner Rotation

Initial Tags
php

Initial Language
PHP