Empire of Sports Europe
▓░░▓░░░▓░░▓▓▓░▓░░░▓▓▓░▓▓▓▓▓░░▓▓░░░▓▓░░▓▓▓░░░░░░
▓░▓░▓░░▓░░▓░░░▓░░░▓░░░▓░░░▓░░▓░▓░▓░▓░░▓░░░░░░░░
▓▓░░░▓░▓░░▓▓░░▓░░░▓░░░▓░░░▓░░▓░░▓░░▓░░▓▓▓░░░░░░
▓░░░░░▓▓░░▓░░░▓░░░▓░░░▓░░░▓░░▓░░░░░▓░░▓░░░░░░░░
▓░░░░░░▓░░▓▓▓░▓▓▓░▓▓▓░▓▓▓▓▓░░▓░░░░░▓░░▓▓▓░░░░░░
Hello and welcome to EOS-EU - First English Speaking Fansite of Empire of Sports!
Register to obtain full access to the website.
We hope you will enjoy the portal.

EOS-EU Team
Empire of Sports Europe
▓░░▓░░░▓░░▓▓▓░▓░░░▓▓▓░▓▓▓▓▓░░▓▓░░░▓▓░░▓▓▓░░░░░░
▓░▓░▓░░▓░░▓░░░▓░░░▓░░░▓░░░▓░░▓░▓░▓░▓░░▓░░░░░░░░
▓▓░░░▓░▓░░▓▓░░▓░░░▓░░░▓░░░▓░░▓░░▓░░▓░░▓▓▓░░░░░░
▓░░░░░▓▓░░▓░░░▓░░░▓░░░▓░░░▓░░▓░░░░░▓░░▓░░░░░░░░
▓░░░░░░▓░░▓▓▓░▓▓▓░▓▓▓░▓▓▓▓▓░░▓░░░░░▓░░▓▓▓░░░░░░
Hello and welcome to EOS-EU - First English Speaking Fansite of Empire of Sports!
Register to obtain full access to the website.
We hope you will enjoy the portal.

EOS-EU Team
Empire of Sports Europe
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Welcome to the first English Speaking Community FanSite of Empire of Sports :)
 
HomePortalGallerySearchLatest imagesHOMEPORTALFORUMLog inRegister

Share

1pɔɹɐsɥǝɹ


 

 Turn on/off background

View previous topic View next topic Go down 
AuthorMessage
Jo_Oker
Administrator
Administrator
Jo_Oker


Turn on/off background Empty
PostSubject: Turn on/off background   Turn on/off background EmptyFri Jan 25, 2013 10:12 pm

Code:
<SCRIPT LANGUAGE="JavaScript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
var pos = 10;
var canGo=true;
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArray.arguments[i];
  }
}
var col=new initArray("4b","5b","8b","8b");
function Stop() {
document.bgColor = '#FFFFFF';
clearInterval(loopID);
canGo=true;
}
function Go() {
col[1]="black"
col[2]="black"
col[3]="black"
col[4]="black"
col[5]="black"
col[6]="black"
col[7]="black"
col[8]="black"
col[9]="black"
col[10]="black"
pos++;
if (pos<0||pos>10) {
pos = 0;
}
document.bgColor = col[pos];


}
function Start()
{
  if(canGo) loopID =setInterval("Go()",50);
    canGo=false;
}
window.onload=Start;
// End -->
</SCRIPT>
<FORM>
<input type="button" value="On" onClick="Start()">
<input type="button" value="Off" onClick="Stop()">
</FORM>





Add the below code to the BODY section of your page
Back to top Go down
 

Turn on/off background

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Slideshow background
» Background Fader
» Background Scroller
» Rain background
» Background Random Images

Permissions in this forum:You cannot reply to topics in this forum
Empire of Sports Europe :: Java Script-