home *** CD-ROM | disk | FTP | other *** search
- #newformat
- _title:Write and slide
- _author:TJS
- _description:Adds letters one by one to the status bars and then scrolls them off.
-
- _message:Message to scroll
-
- _insert-in:inhead
- <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
- <!-- Begin
- var Message="¤message_object$(1)¤";
- var place=1;
- function scrollIn() {
- window.status=Message.substring(0, place);
- if (place >= Message.length) {
- place=1;
- window.setTimeout("scrollOut()",300);
- } else {
- place++;
- window.setTimeout("scrollIn()",50);
- }
- }
- function scrollOut() {
- window.status=Message.substring(place, Message.length);
- if (place >= Message.length) {
- place=1;
- window.setTimeout("scrollIn()", 100);
- } else {
- place++;
- window.setTimeout("scrollOut()", 50);
- }
- }
- // End -->
- </SCRIPT>
- _end-insert:
-
- _insert-in:inbodytag
- onLoad="scrollIn()"
- _end-insert: