home *** CD-ROM | disk | FTP | other *** search
INI File | 2006-09-13 | 1.1 KB | 58 lines |
- [SUBJECT]
- Description=Scrolls your information in a text box
- ImageIndex=-1
- Folder=Text Effects
-
-
- [HEAD_TEXT]
- ;<!-- This script and many more are available free online at -->
- ;<!-- The JavaScript Source!! http://javascript.internet.com -->
- ;
- ;<script language="JavaScript">
- ;
- ;<!-- Begin
- ;var display_text = "`message`";
- ;var place;
- ;var meter;
- ;var out = " ";
- ;place = 50;
- ;function scroll_text() {
- ;for (meter = 0; meter < place; meter++) {
- ;out += " ";}
- ;if (place >= 0)
- ;out += display_text;
- ;else out = display_text.substring(-place,display_text.length);
- ;document.scroll_form.field.value = out;
- ;out = " ";
- ;place--;
- ;if (place < -(display_text.length)) {
- ;place = 50;
- ;}
- ;setTimeout('scroll_text()',`speed`);
- ;}
- ;// End -->
- ;</script>
-
-
-
- [BODY_TEXT]
- ;<div align="center">
- ;<form name="scroll_form">
- ;<input type="button" name="button_one" value="Start" onClick="scroll_text()">
- ;<input type="text" name="field" size="50">
- ;</form>
- ;</div>
-
-
-
- [`message`]
- Kind=S
- Value=Here is the common scroll - except, this one runs in a text box rather than the status bar.
-
-
- [`speed`]
- Kind=N
- Value=100
-
-
-