Thursday, 2018-02-22, 0:09 AM
MaLuFeT Layouts
Main | Background Changer - Forum | Registration | Login
[ New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Forum moderator: malufet 
Forum » Tips and Tricks » Friendster Overlay Profiles » Background Changer
Background Changer
niloDate: Friday, 2008-11-07, 11:28 AM | Message # 1
Colonel general
Group: ML` Members
Messages: 15
Reputation: 4
Status: Offline
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();


 
Forum » Tips and Tricks » Friendster Overlay Profiles » Background Changer
Page 1 of 11
Search:

Copyright MyCorp © 2018