Configuring
the Applet
You can use HTML-Applet Coder to help with this applet configuration.
Configurable
element in the applet
Basic
Configuration
Configuring
Forward Button
Configuring
Backward Button
Configuring
General Image
Configuring the
apprearance of Title
Configuring the
apprearance of Description
Configuring Title-Description
pair and linking page
Configuring
Images which change with title
Adding Default
Link to Applet
Controlling the
speed of message changes
Configurable element in the applet:
-
Title (Text)
-
Description (Text)
-
URL (URL)
-
Forward Button (Image)
-
Backward Button (image)
-
General Image (image)
-
Images which change with title (image)
-
-
Speed of the applet
Basic Configuration:
<APPLET CODE="MessageBanner.class" CODEBASE="[URL]"
width=[width] height=[height]>
[Other parameter]
:
:
</Applet>
| [URL] |
If the java class file is not in the same location with the html file,
specify the URL to get the file |
| [width] |
Width of the applet, units in pixels |
| [height] |
Height of the applet, units in pixels |
| [width] |
Width of the applet, units in pixels |
| [Other parameter] |
Add other parameter which descripted in the following section |
Configuring Forward Button: (Optional,
you can omit this button)
<param name="fButton" value=[fButton]>
<param name="fButton.x" value=[fButton.x]>
<param name="fButton.y" value=[fButton.y]>
| [fButton] |
URL to get Image |
| [fButton.x] |
X coordinate of the top right |
| [fButton.y] |
Y coordinate of the top right |
Example:
<param name="fButton" value="http://www.zaza.com/images/forward.gif">
<param name="fButton.x" value="20">
<param name="fButton.y" value="20">
Configuring Backward Button: (Optional,
you can omit this button)
<param name="bButton" value=[bButton]>
<param name="bButton.x" value=[bButton.x]>
<param name="bButton.y" value=[bButton.y]>
| [bButton] |
URL to get Image |
| [bButton.x] |
X coordinate of the top right |
| [bButton.y] |
Y coordinate of the top right |
Example:
<param name="bButton" value="http://www.zaza.com/images/backward.gif">
<param name="bButton.x" value="70">
<param name="bButton.y" value="20">
Configuring General Image: (Optional,
you can omit this image)
<param name="gImage" value=[gImage]>
<param name="gImage.x" value=[gImage.x]>
<param name="gImage.y" value=[gIamge.y]>
| [gImage] |
URL to get Image |
| [gImage.x] |
X coordinate of the top right |
| [gImage.y] |
y coordinate of the top right |
Example:
<param name="gImage" value="theImage.gif">
<param name="gImage.x" value="20">
<param name="gImage.y" value="40">
Configuring Title apprearance
<param name="title.color" value=[title.color]>
<param name="title.x" value=[title.x]>
<param name="title.y" value=[title.y]>
<param name="title.font" value=[title.font]>
<param name="title.size" value=[title.size]>
<param name="title.style" value=[title.style]>
| [title.color](optional) |
value : black, blue, cyan, darkgray, gray, green, lightGray, orange,
pink, red, yellow, white, magenta |
| [title.x] |
x coordinate of the top right |
| [title.y] |
y coordinate of the top right |
| [title.font](optional) |
Font face of the title.
Default is "TimesRoman" |
| [title.size](optional) |
Font size of the title.
Default is 10 |
| [title.style](optional) |
Font Size:
0 for plain
1 for bold
2 for Italic
3 for bold & Italic
Default is plain |
Example:
<param name="title.color" value="orange">
<param name="title.x" value="10">
<param name="title.y" value="5">
<param name="title.font" value="Helvetica">
<param name="title.size" value="20">
<param name="title.style" value="1">
Configuring Description apprearance
<param name="desc.color" value=[desc.color]>
<param name="desc.x" value=[desc.x]>
<param name="desc.y" value=[desc.y]>
<param name="desc.font" value=[desc.font]>
<param name="desc.size" value=[desc.size]>
<param name="desc.style" value=[desc.style]>
| [desc.color](optional) |
value : black, blue, cyan, darkgray, gray, green, lightGray, orange,
pink, red, yellow, white, magenta |
| [desc.x] |
x coordinate of the top right |
| [desc.y] |
y coordinate of the top right |
| [desc.font](optional) |
Font face of the desc.
Default is "TimesRoman" |
| [desc.size](optional) |
Font size of the desc.
Default is 10 |
| [desc.style](optional) |
Font Size:
0 for plain
1 for bold
2 for Italic
3 for bold & Italic
Default is plain |
Example:
<param name="desc.color" value="orange">
<param name="desc.x" value="10">
<param name="desc.y" value="5">
<param name="desc.font" value="Helvetica">
<param name="desc.size" value="20">
<param name="desc.style" value="1">
Configuring Title-Description pair and linking
page
<param name="title[number].[row]"
value=[Text]>
<param name="desc[number].[row]"
value=[Text]>(optional)
<param name="href[number]" value=[Link]>
<param name="target" value=[target]>(optional)
| [number] |
number of title/desc/link. Integer |
| [row] |
A title/desc can be display more than 1 line. Use this to specify the
row number. |
| [text] |
the text to display. |
| [link] |
URL of the linking page. When user click on the title/desc, the browser
will jump to the url specified here |
| [target] |
name of target browser/frame.
Default is the current browser |
Example:
The following examples set-up two title-description pairs which link
to different sites.
<param name="title1.1" value="Java IDE">
<param name="desc1.1" value="Java IDE on sales>
<param name="desc1.2" value="Click here for detail>
<param name="href1" value="http://www.java.com">
<param name="title2.1" value="C++ IDE">
<param name="desc1.1" value="Newest Features>
<param name="desc1.2" value="Click here for detail>
<param name="href2" value="http://www.c.com">
<param name="target" value="_new">
Configuring Images
which change with title
(See this example in Example 3)
<param name="cImage[number]" value=[URL]>
<param name="cImage.x" value=[cImage.x]>(optional)
<param name="cImage.y" value=[cImage.y]>
| [number] |
The number of image (e.g: for image to show up with title2, this number
is 2) |
| [URL] |
URL to get the image |
| [cImage.x] |
X-coordinate of the top-right position |
| [cImage.y] |
Y-coordinate of the top-right position |
For the 2nd set of Images, use "c2image" instead
of "cImage". This applet only support 2 set of changing images.
Example:
<!-- set up 1st set of images -->
<param name="cImage1" value="mice1.gif">
<param name="cImage2" value="mice2.gif">
<param name="cImage3" value="mice3.gif">
<param name="cImage.x" value="18">
<param name="cImage.y" value="30">
<!-- set up 2nd set of images -->
<param name="c2Image2" value="cat1.gif">
<param name="c2Image3" value="cat2.gif">
<param name="c2Image1" value="cat3.gif">
<param name="c2Image.x" value="80">
<param name="c2Image.y" value="5">
Adding Default Link to Applet
If you want the browser to go to another page when the user clicks
anywhere other than forward, backward button, title and description, set
this up:
<param name="otherLink" value=[URL]>(optional)
Controlling the speed of message changes
<param name="speed" value="[speed]">
| [Speed] |
Any integer from 1 to 100, 1 is slowest and 100 is fastest. |
|