<script language="Javascript">
<!--
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://www.yourdomain.com/your_link_1",
"http://www.yourdomain.com/your_link_2",
"http://www.yourdomain.com/your_link_3",
"http://www.yourdomain.com/your_link_4",
"http://www.yourdomain.com/your_link_4"
);
image = new initArray(
"http://www.yourdomain.com/your_image_name_1.gif",
"http://www.yourdomain.com/your_image_name_2.jpg",
"http://www.yourdomain.com/your_image_name_3.gif",
"http://www.yourdomain.com/your_image_name_4.jpg",
"http://www.yourdomain.com/your_image_name_5.jpg"
);
text = new initArray(
"Alt Text Goes Here for Banner 1",
"Alt Text Goes Here for Banner 2",
"Alt Text Goes Here for Banner 3",
"Alt Text Goes Here for Banner 4",
"Alt Text Goes Here for Banner 5"
);
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="1" alt="'+rantext+'"></a>');
//-->
</SCRIPT>
text = new initArray( "", "", "", "", "" );
ehawkins1 (June 22nd, 2012)
There are currently 1 users browsing this thread. (0 members and 1 guests)