Just Put this on your Js File Here's The Code:
Code
var currentcolor = 0
var timercol = 2500
function initArray(n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}
bgcolors = new initArray(15)
bgcolors[0]="Black"
bgcolors[1]="LightSteelBlue"
bgcolors[2]="DarkSlateBlue"
bgcolors[3]="CornFlowerBlue"
bgcolors[4]="NavyBlue"
bgcolors[5]="LightBlue3"
bgcolors[6]="DeepSkyBlue4"
bgcolors[7]="MediumBlue"
bgcolors[8]="MidnightBlue"
bgcolors[9]="Brown4"
bgcolors[10]="BakersChocolate"
bgcolors[11]="Chocolate"
bgcolors[12]="DarkGreen"
bgcolors[13]="ForestGreen"
bgcolors[14]="DarkOrchid4"
function backgroundChanger() {
window.parent.document.bgColor = bgcolors[currentcolor];
window.parent.document.title = "My background color is " +bgcolors[currentcolor];
if (currentcolor > 13) {
currentcolor=0;
}
if (currentcolor < bgcolors.length-1) {
currentcolor++
setTimeout("backgroundChanger()", timercol);
}
}
backgroundChanger();