Back to Scripts page
Click in the text area below, select all and copy to grab the script
Script listing:
<HTML> <HEAD> <TITLE>Watch me go!</TITLE> <SCRIPT TYPE="TEXT/JAVASCRIPT" LANGUAGE=JAVASCRIPT> <!-- Hide script from older browsers keepGoing = true function moveIt() { if (document.all) { document.all.mover.style.pixelTop += 2 document.all.mover.style.pixelLeft += 2 if (document.all.mover.style.pixelTop > (document.body.clientHeight-100)) { keepGoing = false } } else { document.mover.top += 2 document.mover.left += 2 if (document.mover.top > (window.innerHeight-100)) { keepGoing = false } } if (keepGoing) { setTimeout("moveIt()",20) } } // End hiding script --> </SCRIPT> <STYLE TYPE="TEXT/CSS"> #mover {position: absolute; left: 5; top: 5; font-size:36pt} </STYLE> </HEAD> <BODY BGCOLOR=WHITE onLoad="moveIt()"> <DIV ID="mover"> On the road again... </DIV> </BODY> </HTML>