How to Add Scrolling Text to a Web Page

Below are directions on how to add scrolling text to the bottom of a web page window. It involves using a script language called Java, but you don't need to know that much in order to hack it to do what you want.

  1. You will need highlight and copy all the code that is below the ****.
  2. Then you will need to paste it in your index.html file just above the <body> tag.
  3. You then simply need to make text changes in your index.html where it says "Change this 1st line.", "Change this 2nd line.",and "Change this 3rd line.".
  4. There is also space in the code (look for it) where you can add your name and date as the one who hacked the code.

****

<SCRIPT LANGUAGE="JavaScript">

<!-- Beginning of JavaScript Applet -------------------

/* Copyright (C)1996 Web Integration Systems, Inc. DBA Websys, Inc.

All Rights Reserved.

This applet can be re-used or modified, if credit is given in

the source code.

We will not be held responsible for any unwanted effects due to the

usage of this applet or any derivative. No warrantees for usability

for any specific application are given or implied.

Chris Skinner, January 30th, 1996.

Hacked by YOUR NAME HERE--THE DATE HERE

*/

function scrollit_r2l(seed)

{

var m1 = " Change this 1st line. ";

var m2 = " Change this 2nd line. ";

var m3 = " Change this 3rd line. ";

var msg=m1+m2+m3;

var out = " ";

var c = 1;

 

 

if (seed > 100) {

seed--;

var cmd="scrollit_r2l(" + seed + ")";

timerTwo=window.setTimeout(cmd,100);

}

else if (seed <= 100 && seed > 0) {

for (c=0 ; c < seed ; c++) {

out+=" ";

}

out+=msg;

seed--;

var cmd="scrollit_r2l(" + seed + ")";

window.status=out;

timerTwo=window.setTimeout(cmd,100);

}

else if (seed <= 0) {

if (-seed < msg.length) {

out+=msg.substring(-seed,msg.length);

seed--;

var cmd="scrollit_r2l(" + seed + ")";

window.status=out;

timerTwo=window.setTimeout(cmd,100);

}

else {

window.status=" ";

timerTwo=window.setTimeout("scrollit_r2l(100)",75);

}

}

}

// -- End of JavaScript code ---------------->

</SCRIPT>

<BODY BACKGROUND="#######" onLoad="timerONE=window.setTimeout('scrollit_r2l(10)',100);">