Headliner Applet
| |
Usage and Purchasing
The unregistered version of this applet may be fully
customized and used on as many web sites as desired. In the unregistered
version, the consulting.com, Inc url is displayed in the browser's status bar.
It is a violation of this license agreement to intentionally overwrite this message.
The url does not appear in the status bar when using the purchased
version.
| |
Example
To see an example of this applet in action, open the source.txt file
in this
directory with Notepad. Then CUT out the first line and PASTE it after the last line.
Then change one of the characters in that line and save the text file. You will now see the new
headline scroll in and the deleted headline scroll out.
| |
Easy Setup
The easiest way to set up the applet on your site is to start with the applet code
found on this page. Use Notepad to copy and paste the applet parameters from the sample
HTML file into your HTML file. Then try it out and customize it for your site.
Please make sure the Headliner.class and HLoader.class (or HeadlinerDemo.class
and HLoaderDemo.class) files are in the same directory as your html file.
Please note,
after you change the HTML file you must hit 'reload' on your browser to view the changes
(sometimes you must close the browser and reopen it to see the changes).
| |
Technical Support If you encounter any problems setting up the Headliner applet, please read the applet configuration Frequently Asked Questions section on our web site. Visit http://www.consultcom.com and browse to the Headliner page in our Java Software section. The Frequently Asked Questions page lists the solutions to the most common questions that arise when setting up the applet. If your question in not answered there, then email your question to support@consultcom.com. Please be as specific as possible when describing your problem. Be sure to include your order number if it is available. | |
Applet Description The Headliner vertical scrolling applet is perfect for displaying contantly changing text information. Headliner will read a text file every X number of seconds, and scroll into view any new text that has been added to that file. The number X is specified by an applet parameter. When reading the text file, if a new headline is discovered, the applet will scroll up oldest headline and the newest headline will scroll in from the bottom. So the applet will normally not be scrolling. It only scrolls when new text is detected. If no new text is detected, the applet does not scroll. If you want to scroll out the oldest headline, simply delete the top headline and append the new headline at the end of the file. Actually, the applet does not consider the order of the headlines in the text file. It will only read the sourcefile and compare it with the content of the applet, and if it detects any changes, it will scroll up until the deleted headline is scrolled out. (This explains why, in the EXAMPLE section above, you had to change one of the characters in the line you appended to the bottom of the file. The applet only scrolls if it recognizes a new headline. Simply moving the first headline to the bottom is not the same as adding a new headline.) To make sure that the order of headlines displayed is consistent with the sourcefile, you should delete the top headline and append the new headline at the end of the file. It is very important to notice that the applet will ONLY READ THE FIRST X LINES (specified by a parameter) and ignore other lines after that. Please note that this applet is case sensitive and will only update if there is any changes in the headlines. The applet will not change if only a color, font, etc is changed. | |
Applet Parameters |
backgroundColor
<param name=backgroundColor value="255,0,0">
The background color of the applet. This is specified by
the three digit RGB (red, green, blue) value for the color.
The three numbers must be separated by commas. For example,
the following line sets the background color to red.
mouseOverColor
The color of all links when the mouse is placed over them.
fileName
This is the name of the file that contains the text to be
displayed in the applet. This file must be a text file and
must exist in the same directory as the applet's class file.
refreshRate
The Headliner applet reads all its text from a text file. It
re-reads the text file automatically at a given time interval
and scrolls into view any changes made to that file.
This parameter specifies the number of seconds Headliner will wait
before re-reading the file.
scrollDelay
This parameter controls the speed of the scrolling. The lower the
number, the faster the scroll.
leftMargin
Controls the amount of space between the text and the left side
of the applet.
numberofHeadline
The number of Headlines that will be displayed at one time in the
applet.
maxHeadline
This number specifies the maximum number of lines that
can be updated/added into the applet while it is still running.
The default value is 100, where the
applet may append and display up to 100 lines of text
while it is running.