Free Web Hosting | Web Hosting | Free Web Space | Web Hosting

 

 

 

Background JavaScripts

 

  To see the script in action click on the button below 'start bgcolor WARP'.

 

Script: This is a two step script. This script requires no editing.

Step one: Between the <head> and </head> tags place the following code.

 <SCRIPT LANGUAGE="Javascript"> <!-- This script and many more are available online free at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin

var COLOR = 999999

var woot = 0

function stoploop() {

document.bgColor = '#000000';

clearTimeout(loopID);

}

function loopBackground() {

if (COLOR > 0) {

document.bgColor = '#' + COLOR

COLOR -= 111111

loopID = setTimeout("loopBackground()",1)

} else {

document.bgColor = '#000000'

woot += 10

COLOR = 999999

COLOR -= woot

loopID = setTimeout("loopBackground()",1)

}

}

// End --> </SCRIPT>

 

Step two: Between the <body> and the </body> tags place the following code.

<CENTER><FORM NAME="background"><INPUT TYPE="button" VALUE="Start bgColor WARP" onClick="loopBackground()"><br><input type="button" value="Stop bgColor WARP" onClick="stoploop()"></FORM></CENTER><p><center><font face="arial, helvetica" size="-2">Free JavaScripts provided<br>by <a href="http://www.webpagegoodies.com">WebpageGoodies</a></font></center><p>

 

Back