|
Thanks for download this applet, you will need to add some lines of HTML to your page in order to make use of it. All the possible parameters are listed below, remember that in most cases you will not need all these paramters and if you don't need them don't add them! Each parameter is explained separately below: In addition to the default font file contained within the downloadable zip archive you will find some additional graphics (and appropriate parameters) on the Rotate Scroll homepage at Java Download. The following text describes each of the parameters in turn. As with all my applet descriptions any parameter with a green background is required, yellow backgrounds indicate optional entries, default values for each parameter are enclosed within brackets next to the name. Please remember to replace the variable type in the above parameters with an appropriate entry, eg. [integer] could be 1, 2, 3, etc. The width of the applet will depend on the number and size of characters you are displaying. The easiest way to find the exact width of the applet is to enter any figure for the width and then look at the Java Console (you may need to enable this in the advanced properties of your browser). If you are unsure what the Java Console is please see the help file for your browser..
This parameter is really the only required parameter for basic operation of the applet. At present the parameter takes a simple text string as its value. Remember that the applet maps letters to their equivalent, if they exist, in the graphics font file. If you are using the default font then please see the
This parameter, which takes a path/filename as its value tells the applet where to find the image file containing the font.
This parameter like the fontfilename takes a path/filename as its value. This image is the tube displayed the text, in addition it helps hide the background text so that it appears to go behind the tube. The default image supplied is 240 pixels wide and 80 pixels high and should suffice for most font graphics. However you of course may alter its dimensions or colour as required. The graphic is automatically centred behind the text so there is no need to specify its height or width explicity.
This parameter, which takes an integer as its value, sets the number of blocks visible on the screen. The default value is 20 as in the demo at the top of this page. However you can use any value you like both odd and even. When choosing the number of
This parameter taking an integer as its value determines how many pixels the line is scrolled by during each iteration. The default should be fine but you can of course slow it down or speed it up (not recommended!) as you desire.
The default spacing value, which takes an integer as its value is set at 2 pixels. For most types of graphical font this should be adaquate. However some may look better with smaller values, some with larger ones. Feel free to alter this as required.
Every individual character within the image file must be of an equivalent height and width (although the height and width themselves need not be the same). To set these parameters you must give integer values to With the width and height of the characters defined the next step is to define how the applet finds each block within the file. To achieve this you must supply integer values to four parameters;
With the layout of the image file now known you must also supply three further parameters. The first of these The final parameter required ~!#########',#. 0123456789#####?#ABCDEFGHIJKLMNOPQRSTUVWXYZ#
Note in the above how even though both the first and last characters in the graphic file are spaces I have instead mapped them to a null character. The real SPACE is mapped between the . and 0, although I could have mapped it to any of the spaces other the first or last. If you have any problems using these parameters to enable you to use your own font designs then please email me (see icons at top of page). In addition please remember that a number of fonts are available for download and which include the HTML required to make them work, see above.
This parameter allows you to set a general background colour for the applet. The default is black (000000) and the format for entry is the standard hextriplet used in HTML tags. So for example to set the background to white use a value of FFFFFF, for pure red use FF0000, etc. I hope you enjoy this applet, feel free to email me or leave a message in the guestbook (see icons at top of page). Similarly if you have problems or suggestions for improvements drop me an email or leave a message in the guestbook. Please also remember to abide by the conditions of use you agreed to on download. |