Index:

- Installation
- Sample "conf.dat" file
- Applet parameters
- Sample Applet Tag in HTML file

Installation
Install all following files in the same directory as your HTML file and set file permission correctly for Internet access AnyFontH.class conf.dat font file which you choose, let's say, you pick font_1_12.fnt file then you need go to "FontInfo\Font1" folder, copy font_1_12.fnt to current folder holding AnyFontH.class and conf.dat, make sure these 3 files are sitting under the same folder. All font files are located under "FontInfo" folder. The trial version has "mw6tech demo" as first news and some characters have horizontal bar inside, full version has no such issue.All news information are stored in a file called"conf.dat", this file format is pretty much like HTML format, you can use any text editor tool to generate this file, in order to let applet parse it properly, this file must comply with some guidelines. Each news entry is defined by tags values and must be in the same line, namely, do not punch ENTER key in middle of news entry, any blank lines and lines starting with "<!" are skipped. Take a look at following sample"conf.dat" file.

Back to Top

Sample "conf.dat" file
[Sample conf.dat file for all news, put news caption, news content and news URL link in different lines] [News 1] content_1=MW6 is hometown of high quality and reliable applets url_1=http://www.mw6tech.com/demo.html color_1=0, 0 ,0 [News 2] content_2=Download our evaluation version products for a try url_2=http://www.mw6tech.com/demo.html color_2=0, 0 ,0 [News 3] content_3=Order our products either on-line or off-line url_3=http://www.mw6tech.com/demo.html color_3=0, 0 ,0 [News 4] content_4=We provide free unlimited support url_4=http://www.mw6tech.com/demo.html color_4=0, 0 ,0 [News 5] content_5=We can also offer consulting service for you url_5=http://www.mw6tech.com/demo.html color_5=0, 0 ,0

Back to Top

Applet parameters
Name | Description
window | Defines name of a frame or a window where links will be opened. There are 5 choices for this parameter "_self": open page in current window "_parent": open page in parent window "_top": open page in topmost window "_blank": open page in new unnamed top-level window name: open page in a new top-level window called name Sample Usage: <param name="window" vaule="_self">
confFile | Indicate whether conf.dat sitting on the web server side with same folder as applet itself is used to hold all news info, 'Y' means usage of conf.dat and 'N' represents news parameters inside applet tag take effective Sample Usage: <param name="confFile" vaule="Y">
content_1 | 1st news content (if conf_file='N') Sample Usage: <param name="content_1" vaule="MW6 is hometown of high quality and reliable applets">
url_1 | 1st news URL link (if confFile='N') Sample Usage: <param name="url_1" vaule="http://www.mw6tech.com/demo.html">
color_1 | 1st news color (if confFile='N') Sample Usage: <param name="color_1" vaule="0, 0, 0">
content_M | M-th news content (if confFile='N') Sample Usage: (M=3) <param name="content_3" vaule="MW6 is hometown of high quality and reliable applets">
url_M | M-th news URL link (if confFile='N') Sample Usage: (M=3) <param name="url_3" vaule="http://www.mw6tech.com/demo.html">
color_M | M-th news color (if confFile='N') Sample Usage:(M=3) <param name="color_3" vaule="0, 0, 0">
backColor | Applet background color using RGB triplet of 3 decimal numbers in the range of 0-255. Sample Usage: <param name="backColor" value="255, 0, 0">
borderColor | Applet border color using RGB triplet of 3 decimal numbers in the range of 0-255. Sample Usage: <param name="borderColor" value="255, 0, 0">
delay | text moving delay (in milliseconds). Sample Usage: <param name="delay" value="20">
yAdjust | vertical adjustment for text. Sample Usage: <param name="yAdjust" value="1">
mouseOverColor | News content color using RGB triplet of 3 decimal numbers in the range of 0-255 when mouse is over news content area,. Sample Usage: <param name="mouseOverColor" value="255, 0, 0">
fontFile | font file name Sample Usage: <param name="fontFile" value="font_1_12.fnt">
action | Indicate text moving option. right-to-left scrolling (value 1) bottom-to-top scrolling (value 2) typewriter effect (value 3) Sample Usage: <param name="action" value="1">
textColor | News content color using RGB triplet of 3 decimal numbers in the range of 0-255. Sample Usage: <param name="textColor" value="255, 0, 0">

Back to Top

Sample Applet Tag in HTML file
<applet code="AnyFontH.class" width="300" height="30"> <param name="confFile" vaule="N"> <param name="fontFile" vaule="font_1_12.fnt"> <param name="content_1" vaule="MW6 is hometown of high quality and reliable applets"> <param name="url_1" vaule="http://www.mw6tech.com/demo.html"> <param name="color_1" value="255, 255, 255"> <param name="content_2" vaule="Download our evaluation version products for a try"> <param name="url_2" vaule="http://www.mw6tech.com/demo.html"> <param name="color_2" value="255, 255, 255"> <param name="backColor" value="255, 255, 255"> <param name="borderColor" value="0, 0, 0"> <param name="mouseOverColor" value="0, 255, 0"> <param name="textColor" value="255, 255, 0"> <param name="delay" value="55"> <param name="yAdjust" value="1"> <param name="window" value="_parent"> </applet>

Back to Top