Back to Scripts page
Click in the box below, select all and copy to grab the script
<HTML> <HEAD> <TITLE>My JavaScript page</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT> <!-- 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. myMsg = "Hey, I know JavaScript - check out my kewl scroller! ... " i=0 function scrollMsg() { frontPart = myMsg.substring(i,myMsg.length) backPart = myMsg.substring(0,i) window.status = frontPart + backPart if (i < myMsg.length) { i++ } else{ i = 0 } setTimeout("scrollMsg()",50) } // End hiding script from older browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE onLoad="scrollMsg()"> <H2>I'm a kewl JavaScript dood with a scrolling status bar!</H2> </BODY> </HTML>