Vertical Text ScrollerThis page will explain the two new optional parameters that allow input from a text file, see the Vertical Text Scroller home page for details on how to use all the other applet parameters. |
The scroller above looks and behaves exactly like the scroller on Vertical Text Scroller home page. The main difference between the two scrollers is how they get their input parameters. The scroller on Vertical Text Scroller home page gets all its input parameters from HTML param tags, the applet on this page gets some of its input parameters from a text file. Using a text file as input to the applet is easy. Create a text file and put it in the same directory as the applet class file. Then use the 2 new applet parameters (textFile and insertTextFile ) to tell the applet the name of the text file, and where you want the lines displayed. See below for more detail. Now users with no knowledge of HTML can dynamically alter the scrollers real estate by modifying a simple text file. Dynamically changing information, like news or weekly promotions, can now be displayed on the scroller quickly and easily. The scroller supports unlimited number of lines from a text file. The scroller will now display as many lines as the text file holds automatically. This is perfect for using the scroller to display variable information from a database like stock quotes or news.
|
|
textFile This parameter identifies the name of the text file. Make sure the text file is spelled correctly, upper and lower case matter. Put the text file in the same directory as the class file: VertTextScroller.class.
For example, if your text file is named Demo3.txt, enter the following parameter:
For example, enter the following parameter:
insertTextFile
Fixed number of lines from a input file:
For example, if you want the lines in the text file to display at line 2 - line 7 of the scroller,
enter the following parameter:
Variable (unlimited) number of lines from a input file:
For example, if you want the lines in the text file to display starting at line 1 of the scroller,
enter the following parameter:
|
The text file is intentionally simple to allow modifications to be as painless as possible for the non technical user.
|