HOME / IMAGE SCRIPTS / RANDOM BANNER ROTATION
This script will rotate between four banner ads with links. I found several banner display scripts. Some picked a new banner at random on each reload. Others rotated the banners, but I noticed that they would always start with the same banner every time the page was loaded, which gave the first sponsor more displays. So I combined the two scripts to first load a banner at random, then rotate through the rest from there. Clicking on a banner will send you to the banner's corresponding page.
Here's the code. This part goes in the HEAD:
place this code within the BODY tag to call the function when the page loads:
Put this code where you want the banners to appear:
You'll also need the banners. Here are the ones I used in this example. Of course you can use your own banners (or any other image for that matter) just change the image source to match the location of your banners. The images must all be named the same with sequential numbers. (e.g., banner1.gif, banner2.gif, etc.)



