A highly requested script, the banner rotator shows an random image w/ link. This is usfull if you want to rotate page banners and earn more cash (or give away more hits). Though not as nice looking, the banner rotator script is more disirable to using complex CGI or shelling out tons of money to companies for the service. This script is easy to customize and fit for your page.
The source..


<script language="Javascript">
<!--
// original content taken from Nic's JavaScript Page with permission
// lack of these three lines will result in copyright infringment
// made by: Nic's JavaScript Page - http://www.javascript-page.com

var currentdate = 0;
var core = 0;

function initArray() {

this.length = initArray.arguments.length;
  for (var i = 0; i < this.length; i++) {
  this[i] = initArray.arguments[i];
  }
}

link = new initArray(
"http://3bgraphics.hypermart.net/",
"http://html.digitalsea.net/",
"http://www.javascript-page.com/"
);

image = new initArray(
"http://3bgraphics.hypermart.net/link/3bgraphics.gif",
"http://html.digitalsea.net/htmlnow.gif",
"http://www.oocities.org/~jsmaster/jsnow.gif"
);

text = new initArray(
"3B Graphics",
"Learn HTML in 7 Easy Steps",
"Nic's JavaScript Page"
);

var currentdate = new Date();
var core = currentdate.getSeconds() % image.length;
var ranlink  = link[core];
var ranimage = image[core];
var rantext  = text[core];

document.write('<a href=\"' +ranlink+ '\"><img src=\"'+ranimage+'\" border="0" alt=\"'+rantext+'\"></a>');

//-->
</SCRIPT>

Color coding..


These are the link urls, image urls, and link names that you wish to display. Each is stated "url or name", . You can add and remove the urls and names by following that proceedure. Just make sure that the last one of each type does not contain a comma (,) at the end.
This is the HTML for the buttons/banners. You can edit anything in here to your needs except the \"' +ranlink+ '\" and \"'+ranimage+'\" and \"'+rantext+'\". These three declarations insert the random link, image, and text into the HTML.
Nic's JavaScript Page