// == This Script Free To Use Providing This Notice Remains == //                                                                 
// == This Script Has Been Found In The http://www.DesignerWiz.com Javascript Public Archive Library == // 
// == NOTICE: Though This Material May Have Been In A Public Depository, Certain Author Copyright Restrictions May Apply == //
// Copyright © 1999 Doug Popeney
// Created by Doug Popeney (easyjava@easyjavascipt.com)
// JavaScript Made Easy!! - http://www.easyjavascript.com


i = 5 // Number of banners that you have
banner1 = new Image();
banner1.src = "images/quote1.jpg"; //enter image location
banner2 = new Image();
banner2.src = "images/quote2.jpg"; //enter image location
banner3 = new Image();
banner3.src = "images/quote3.jpg"; //enter image location
banner4 = new Image();
banner4.src = "images/quote4.jpg"; //enter image location
banner5 = new Image();
banner5.src = "images/quote5.jpg"; //enter image location
links = new Array
links[1] = "/.html" //enter links
links[2] = "/.html" //enter links
links[3] = "/.htm;" //enter links
links[4] = "/.htm;" //enter links
links[5] = "/.htm;" //enter links
description = new Array
description[1] = "Quote." //status bar description
description[2] = "Quote." //status bar description
description[3] = "Quote." //status bar description
description[4] = "Quote." //status bar description
description[5] = "Quote." //status bar description
function randombanner(){
var randomnumber = Math.random();
i = Math.round( (i - 1) * randomnumber) + 1;
document.banner.src = eval("banner" + i + ".src");
}
function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=10;   //set second delay here
Timer();
}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
if (i < 3){
i++;
document.banner.src = eval("banner" + i + ".src");
}
else{
i = 1;
document.banner.src = eval("banner" + i + ".src");
}
startTime();
}
else{
window.setTimeout("Timer()",1)}
}
function clickLink(){
top.location = links[i]
}
function descript(){
window.status = description[i]
}