<HTML><HEAD>
<!--
---------------
Marquee Message
---------------
-->
<SCRIPT LANGUAGE="JavaScript"><!-- hide from old browsers
/*
THE JAVASCRIPT COOKBOOK by Erica Sadun, webrx@mindspring.com
Copyright (c)1998 by Charles River Media. All Rights Reserved.
This applet can only be re-used or modifed by license holders of the
JavaScript Cookbook CD-ROM. Credit must be given in the source
code and this copyright notice must be maintained. If you do
not hold a license to the JavaScript Cookbook, you may NOT
duplicate or modify this code for your own use.
Use at your own risk. No warranty is given or implied of the suitability
of this applet for any specific application. Neither Erica Sadun nor
Charles River Media will be held responsible for any unwanted effects
due to the use of this applet or any derivative.
*/
var str="" // the message to display
// Set the status bar message
function setMessage()
{
if (str == "")
{
/* Initialize: pad front of string with blanks */
for (var ii = 0; ii < 120; ii += 10) {str = str + " "}
/* Add the pad before the string */
str = str + "YOUR MESSAGE HERE"
}
else
{
/* remove a blank at a time */
str = str.substring(2, str.length)
}
// Update the status bar message and set a new timeout
window.status = str
JSCTimeOutID = window.setTimeout('setMessage()',100)
}
<!-- done hiding --></SCRIPT></HEAD>
<BODY bgcolor="ffffff" link="0000ff" vlink="770077"
onload="JSCTimeOutID = window.setTimeout('setMessage()',500);">
<FONT COLOR="007777"><H1><IMG SRC="../GRAFX/UTENS.JPG" WIDTH=80 HEIGHT=50
ALIGN = LEFT>Marquee #1</H1></FONT>
<BLOCKQUOTE><FONT COLOR="770000">
This script scrolls a message from right to left, using the
substring function to cut the message smaller and smaller.
This is the fastest form of Marquee. You can make it faster
by cutting off more spaces per iteration.
</FONT></BLOCKQUOTE>
<BR><BR>
<FONT COLOR="007777"><H2>Discussion</H2></FONT>
<FONT SIZE=4>
This JavaScript sets an initial
timeout in the BODY that is renewed in
the function it eventually calls. The
timeout is set here for 100 millisecond timeout.
Shorten or lengthen this to adjust the timing.
</FONT>
<h5>Copyright ©1996 by Charles River Media, All Rights Reserved</h5>
</BODY>
</HTML>