The marquee JavaScript is in the head block. The onload attribute in the body tag starts the marquee running. Here is the HTML code for the page:
<html> <head> <title>Simple Marquee Example</title> <script language="JavaScript"> <!-- var nspaces = 135; // Number of spaces to prepend to the message. var timer; var msg; var delay = 100; // Scroll rate in milliseconds. function scrollMaster() { // Initialize the marquee. // Make sure nothing is running. clearTimeout(timer); // This the the marquee message. msg = "This is my scrolling marquee. Isn't it beautiful? " + "I sat up all night and wrote the code to do this. " + "Are you impressed? You better be!!! :-)"; for (var i = 0; i < nspaces; i++) { msg = " " + msg; } scrollMe(); // Begin scrolling. } function scrollMe() { // Display the message and rotate it to scroll. status = msg; msg = msg.substring(1, msg.length) + msg.substring(0, 1); timer = setTimeout("scrollMe()", delay); } // --> </script> </head> <body bgcolor="darkblue" text="white" onload="scrollMaster();"> <h1>Look at the status bar below to see the scrolling marquee.</h1> <p> The marquee JavaScript is in the head block. The onload attribute in the body tag starts the marquee running. Here is the HTML code for the page: <hr> <p> <script language="JavaScript"> <!-- var modiDate = document.lastModified; modiDate = modiDate.substring(0,8); document.write("This page last updated on " + modiDate + "."); // --> </script> </body> </html>