JAVA     

KzmMessage

Created: 25.Jun.96

Jars Top 25%
KzmMessage Applet
 
    * Description
I'm proud to say that I've wrote KzmMessage with all the suggestions and comments that I've received from the users of my two previous applets (KzmScroll and KzmFortune). This applet is a combination of them, with a interesting feature added. In fact you can use this applet with a static message defined in the <PARAM ...> tag, or different messages readed by a file. In this case you can choose or to show only one message every time that the page is loaded or every time that the message disappears from the screen it changes. The change can be defined to follow the sequence of messages in the file (first line 1, then line 2, then line 3 and so on) or randomly readed every time. Click HERE for some examples.
The file must be present in the same directory that contains the html file that uses the applet!
     
    * Parameters
Font_Size (int, default=12)
The size of the font.
Font_Bold (yes|no, default="no")
Use yes if you wanna the message in bold.
Font_Italic (yes|no, default="no")
Use yes if you wanna the message in italic.
Shift (int, default=2)
This is the shifting of the message.
Delay (int, default=50)
The delay (in milliseconds) between every shift.
Back_Color (vbar|hbar|line, default=hbar)
The background color.
Text_Color (string, default="")
The color of the text..
Message_Type (applet|file, default="applet")
If this parameter is applet, the scrolling message is the one defined into the parameter "message_file" below. If the value is "file" the message is readed from the file indicated with "message_file". It is red using the sequence indicated in the "sequence" parameter below.
Message_File (string or filename, no default)
If the "message_type", above, parameter is "applet", this parameter contains the message to scroll. Else is the filename of the file that contains the messages to be read in the sequence indicated by the below parameter "sequence".
Sequence (order|random|static, default="random")
This parameter is valid ONLY if you're working with a file:
"order" = messages are as in the file.
"random" = message is randomly readed from the file.
"static" = message change (randomly) after a reload.
Copyright (string)
This is a simple copyright line. Please, don't change it. The applet is free, so the only cost is to leave this copyright.
     
    * Download
KzmFortune.zip      
    * Example
Here is the tag used for the example above:
<APPLET CODE="KzmMessage" WIDTH="350" HEIGHT="30">
 <PARAM NAME="copyright"
        VALUE="Alex 'Kazuma' Garbagnati, kazuma@energy.it">
 <PARAM NAME="shift" VALUE="2">
 <PARAM NAME="delay" VALUE="25">
 <PARAM NAME="font_size" VALUE="24">
 <PARAM NAME="font_italic" VALUE="yes">
 <PARAM NAME="font_bold" VALUE="yes">
 <PARAM NAME="back_color" VALUE="255 255 255">
 <PARAM NAME="text_color" VALUE="0 0 0">
 <PARAM NAME="message_type" VALUE="applet">
 <PARAM NAME="message_file" VALUE="Welcome to KzmMessage">
</APPLET>