I see a lot of people posting new threads here asking about rotating banner scripts, when they could easily be found using a quick google search.
Fortunatly for some, I have decided to post the one that I use on ForumLair.com - look to the right of the logo.
If you need more than 4 images, just add a new line for the URL, IMAGE URL and ALT TEXT. This script rotates on every refresh.
Fortunatly for some, I have decided to post the one that I use on ForumLair.com - look to the right of the logo.
Code:
<script language="Javascript">
<!--
// Content made by donace
// For ForumLair.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://URL HERE",
"http://URL HERE",
"http://URL HERE",
"http://URL HERE"
);
image = new initArray(
"http://IMAGE URL HERE",
"http://IMAGE URL HERE",
"http://IMAGE URL HERE",
"http://IMAGE URL HERE"
);
text = new initArray(
"ALT TEXT HERE",
"ALT TEXT HERE",
"ALT TEXT HERE",
"ALT TEXT HERE"
);
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>
If you need more than 4 images, just add a new line for the URL, IMAGE URL and ALT TEXT. This script rotates on every refresh.







