dcsimg

Assignment 42: A Possible Answer

This:

<script language="JavaScript">

var scr = " "
var scr = scr + "This text is scrolling along..."
function ScrollAlong()
{
temp = scr.substring(0,1);
scr += temp
scr = scr.substring(1,scr.length);
defaultStatus = scr.substring(0,55);
setTimeout("ScrollAlong()",20);
}

</script>

 

Gives you this:

     You get the effect by pointing the output of the script toward the status bar. The speed increase is done by setting the number 50 in the "setTimeout" to less than the original, 50.

 

Did You Get It?

 

Back to the Index Page