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


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

Share | 

1pɔɹɐsɥǝɹ


 

 Turn on/off background

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


PostSubject: Turn on/off background   Fri 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
View user profile
 

Turn on/off background

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

 Similar topics

-
» BACKGROUND CHECKS FOR NOOBS
» Addons wont turn off.
» Lagging + Background
» Background Music
» Metallica - turn the page

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