Random Advertisement Script
<?php
// Random Advertisement Script
// http://nooksters.com
$num = rand(1, 3);
// make sure to change the second number above to however many ads you have below.
// for example: if you have 7 cases below, the line above will read...
// $num = rand(1, 7);

switch($num){
  case 1:
    ?><a href=http://www.nooksters.com target=_blank>
<img src=http://www.nooksters.com/img.jpg border=0></a>
    <?php
    break;
  case 2:
    ?><a href=http://www.nooksters.com target=_blank>
<img src=http://www.nooksters.com/img.jpg border=0></a>
    <?php
    break;
  case 3:
    ?><a href=http://www.nooksters.com target=_blank>
<img src=http://www.nooksters.com/img.jpg border=0></a>
    <?php
    break;
  // to ad more advertisements just follow the same pattern
  //case 4:
  // ?><a href=http://www.nooksters.com target=_blank>
<img src=http://www.nooksters.com/img.jpg border=0></a>
  // <?php
  // break;
  //case 5:
  // ?><a href=http://www.nooksters.com target=_blank>
<img src=http://www.nooksters.com/img.jpg border=0></a>
  // <?php
  // break;

}
?>

To Use:

Simply save the code above as rndad.php, upload the file rndad.php to wherever you like then wherever you would like to show the ad insert the following line of code:

<?php
include 'rndad.php';
?>