![]() ![]() ![]() ![]() |
Table of Contents |
The VolanoChat client applet can embed other Java applets and display them in the banner area of the chat room windows. This feature can be used to create dramatic effects in your chat rooms or to add a touch of fun. You can remove the BannerPlayer applet provided with the VolanoChat product and replace it with any other standard Java applet. You need to store the applet using the same codebase as the VolanoChat applet. By default, the codebase is the vcclient
subdirectory.
For example, here is an applet written by Erling Anderson:
Applet 1: ParticleText applet.
This applet is placed on the Web page with the following HTML tags provided the class files are placed in the vcclient
directory:
<applet code = "ParticleText.class" width = "468" height = "60" codebase = "vcclient"> <param name="width" value="468"> <param name="height" value="60"> <param name="targetFPS" value="50"> <param name="morphdelayMs" value="1500"> <param name="useBlur" value="true"> <param name="useSineShift" value="true"> <param name="sineShiftSpeed" value="100"> <param name="sinePeriodFactor" value="20"> <param name="sineScaleFactor" value="15000"> <param name="backColor" value="000000"> <param name="textColor" value="fff5aa"> <param name="fontSize" value="40"> <param name="fontName" value="arial"> <param name="fontBold" value="true"> <param name="fontItalic" value="true"> </applet>
To embed this applet (with Erling Anderson's permission) in the banner area of your chat rooms, you would define the VolanoChat [7.1.2] client applet properties with:
banner.code=ParticleText.class banner.parameters=ParticleText.txt banner.width=468 banner.height=60
where ParticleText.txt
contains the parameters:
width=600 height=60 targetFPS=50 morphDelayMs=1500 useBlur=true useSineShift=true sineShiftSpeed=100 sinePeriodFactor=20 sineScaleFactor=15000 backColor=A0B8C8 textColor=FFF5AA fontSize=40 fontName=Arial fontBold=true fontItalic=true
Note: The width of the applet sometimes needs to be set wider than the area defined for it in your english.txt file. This helps to cover any exposed background space when using Java applets that don't size correctly.
To add the applet, simply place the following files in the vcclient
codebase directory of the VolanoChat applet:
ParticleText.class
ParticleText.txt
Here's an example of what this applet would look like embedded in a chat room.
Applet 2: VolanoChat applet with embedded ParticleText applet.
More information on this applet can be found at Java.Internet.com, and Erling's homepage can be found here:
http://www.stud.ntnu.no/~erlinga/
![]() ![]() ![]() ![]() |
XHTML 1.0 | Table of Contents |