ScrollWriter Applet

Easy Setup

The easiest way to set up the applet on your site is to start with code found on this page. Cut and paste this sample applet code into your own HTML page. Please make sure the ScrollWriterPromo.class file is in the same directory as your html file.

After you change your HTML file you must hit 'Reload' on your browser to view the changes. You may need to close and reopen the browser to see the changes.

Once you have this sample applet working within your own page, then begin to customize the parameters for your own site.


Technical Support

If you encounter any problems setting up the ScrollWriter applet, please read the applet configuration Frequently Asked Questions section on our web site. Visit http://www.consultcom.com and browse to the ScrollWriter 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 Parameters

numberOfLines  The number of lines of text to be displayed in the applet.
scrollOffset  The number of lines that will be typed before the applet starts scrolling text.
defaultFontColor  The default text color for all lines. 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 font color to red.

<param name=defaultFontColor value="255,0,0">

defaultFontSize  The default font size for all text.
defaultFontStyle  This is the default font style used in the applet. Use one of the following:
  • PLAIN
  • BOLD
  • ITALIC
  • ITALIC+BOLD
defaultFontName  The default font used for all text displayed in the applet. Use one of the following:
  • TimesNewRoman
  • Courier
  • Dialog
  • Helvetica
 
topMargin  The amount of vertical space between the top of the applet and the first line of text.
verticalMargin  The amount of horizntal space between the side of the applet and the text.
cursorType  Describes which character, if any, that will be displayed just before each new character is typed. Possible values are:
  • UNDERLINE
  • BLOCK
  • NONE
cursorColor  The color of the cursor. 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 cursor color to red.

<param name=cursorColor value="255,0,0">

defaultCharSleep  The speed at which the text is typed.
defaultLinePause  The default amount of time the each page is displayed after each line has been typed.
backgroundColor  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.

<param name=backgroundColor value="255,0,0">

urlMouseOverColor  The color of all links when the mouse is placed over them.
defaultLineAlignment  The default horizontal alignment of the text. Possible values are:
  • left
  • right
  • middle
onMouseOverPause  Set this value to 'true' if you would like the typing to pause when the mouse is placed over the applet.
scrollSpeed  The speed at which the text scrolls upward. The lower the number, the faster the scroll.
smoothScroll  Set this value to 'true' if you would like the scroll to be smooth. Set this value to 'false' for an immediate scroll.
target  The target frame for all links.
linespacing  The amount of vertical space between each line.
lineX  Each line parameter contains one sentence to be displayed in the applet. The first sentence is specified by the parameter line1, the second by line2, etc.
fgColorX  The font color for the text on line number X. 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 text color of line 1 to red.

<param name=fgColor1 value="255,0,0">

fontNameX  Sets the font used for the text on line number X. For example, use the parameter font1 to change the font for line 1. Use one of the following values:
  • TimesNewRoman
  • Courier
  • Dialog
  • Helvetica
 
alignmentX  The default horizontal alignment of the text on line nnumber X. Possible values are:
  • left
  • right
  • middle
urlX  The url to display when line number X is clicked.
messageX  Message to be displayed in the status bar when the mouse is placed over line number X.
fontSizeX  Sets the font size for the text on line number X. For example, use the parameter size1 to change the font size for line 1.  
fontStyleX  This is the font style for the text on line number X. Use one of the following:
  • PLAIN
  • BOLD
  • ITALIC
  • ITALIC+BOLD
pauseX  The amount of time line number X is displayed after the entire line has been typed. For example, to display the text on line 1 for 4 seconds, set the parameter Pause1 to "4000".
charSleepX  The speed at which the text is typed for line X.
sourcefile  The sourcefile parameter may be used in place of the line parameter to specify the text displayed in the applet. To use the sourcefile parameter, set its value to the filename that you want to display. This file must be a text file.

When using the sourcefile parameter you should delete the line1, line2, ...linex, parameters since all of the text will come from the text file. Similarly, if you leave the sourcefile parameter empty, then you should include the string1, string2, ...stringx parameters.

For example, if you want to display text from a text file, the code should look like this:

<param name=sourcefile value="data.txt">

and you can delete all the lines like

<param name=line1 value="Sentence number one.">
<param name=line2 value="Sentence number two.">

In this case, a text file named data.txt must exist in the same directory as the applet's class file. It must also contain two lines, the first containing "Sentence number on." and the second "Sentence number two."

To see this parameter in action, delete the string parameters from this example and set the sourcefile parameter to Data.txt


Applet Usage

The purchased version of the ScrollWriter applet may be displayed in multiple locations on one web site (one domain). Our free evaluation version is for unlimited use, however it displays the consulting.com. Inc url in the browser's status bar. The purchased version does not display our url. For more information visit the consulting.com, Inc. web site.