home *** CD-ROM | disk | FTP | other *** search
- newformat
- _title:Quick Status Bar Scroll
- _description: A Quick scrolling message across the status bar
- _author:Andrew Pullan
- _contact:a.j.pullan@zetnet.co.uk
- _message:Message to scroll
- _insert-in:inhead
- <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
- <!--
- var spaces = " ";
- var msg = "¤message_object$(1)¤";
-
- var max = msg.length;
- if (max > 40)
- max = 40;
-
- while (spaces.length < max) {
- spaces += " ";
- }
-
- var msg2 = spaces + msg + spaces;
-
- function scrollstatus(seed) {
- window.status=msg2.substring(seed, seed + max);
- seed += 1;
- if (seed > msg2.length - max)
- seed=0;
- timer1=window.setTimeout("scrollstatus("+seed+")",75);
- }
-
- window.setTimeout('scrollstatus(0)',500);
- // -->
- </SCRIPT>
- _end-insert:
-