Back to Scripts page
Click in the box below, select all and copy to grab the script
<HTML> <HEAD> <TITLE>Watch me go!</TITLE> <SCRIPT> <!-- Hide script from older browsers // This script copyright 1997, Tom Negrino and Dori Smith. // This script is from "JavaScript for the WWW, Visual QuickStart Guide, 2nd Ed." // For more information, see <http://www.chalcedony.com/javascript/>. // This script may be used and modified, but the copyright notice must remain intact. function moveIt() { document.mover.top+=2 document.mover.left+=2 if (document.mover.top <= (window.innerHeight-10)) { 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>