PreviousNextUpFAQ Table of Contents

Overriding Default Properties

The MyVolanoChat applet provided with VolanoChatPro can read its properties directly from the applet tag on its Web page. Each of the applet properties described in the Properties section of the VolanoChat Applet chapter can be defined as a parameter on the Web page of the MyVolanoChat applet, as long as the property override.myvolanochat is true. This feature makes it easy for Web hosting companies to offer personalized chat rooms to their customers without requiring property files to be posted to the server machine.

For example, the following applet shows how the applet properties for the background color, text color, text font, and button images can be overridden directly in the applet tag:

Applet 8.2: MyVolanoChat applet with overridden properties.

The applet tag and parameters used to embed the applet above is:

<applet codebase="vcclient"
        archive="COM/volano/MyVolanoChat.zip"
        code="COM.volano.MyVolanoChat.class"
        width="500" height="100">
<param name="cabbase" value="COM/volano/MyVolanoChat.cab">
<param name="color"   value="#FFFFFF">
<param name="group"   value="John's Personal Chat Room">
<param name="text"    value="english.txt">
<param name="color.background" value="#C000FF">
<param name="color.foreground" value="#000040">
<param name="font.default"     value="Helvetica-13">
<param name="image.button1"    value="netscape.gif">
<param name="image.button2"    value="microsoft.gif">
</applet>

The last five parameters are normally properties found in the english.txt applet properties file, but their values can be overridden on the Web page by defining them as parameters of the MyVolanoChat applet. The Properties section of the VolanoChat Applet chapter describes all of the applet properties which can be overridden as MyVolanoChat applet parameters.

To customize the Java applet embedded in the banner space of the chat room, the properties for the embedded applet can be defined with the prefix banner.param. For example, you can define the background parameter of the embedded BannerPlayer applet with the following MyVolanoChat applet parameter:

<param name="banner.param.background" value="#FFFFFF">

PreviousNextUpFAQ Check HTML Table of Contents