Add the following HTML on your web page to add
WMTicker:
<applet
codebase = "%httpproto%://%httpaddr%:%httpport%/java/wmticker/"
archive= "WMTicker.zip"
code= "WMTicker.class"
name= "WMTicker"
width= 600
height= 20>
</applet>
To modify the Ticker format modify the WMTickerDefault.prm
file in the WMTicker:
bgcolor=ffffff
fgcolor=000000
font=Arial
size=12
tickerspeed=20
feed=%httpproto%://%httpaddr%:%httpport%/feed
Here is the default.htm file in the feed directory,
the ticker will pull this file every x minutes:
<a reconnect=3m></a>
<a href=%%httpproto%%://%%httpaddr%%:%%httpport%%>%%description%%</a>
%%dolusers%%
%%channel_#webchat%%
%%!chan_n%%
<a href=%%httpproto%%://%%httpaddr%%:%%httpport%%/?@channel=%%chan_ln%%>Join
%%chan_u%% people in %%chan_n%%, the current topic is: %%chan_t%%</a>
%%!%%
</a>
<a href=%%httpproto%%://%%httpaddr%%:%%httpport%%>ConferenceRoom
%%version%%</a>
<a href=%%httpproto%%://%%httpaddr%%:%%httpport%%>There are
%%lu_usercount%% people currently on the chat server</a>
WMTicker
All applet params must be in a file named WMTickerDefault.prm
in the directory where the applet class archive is (WMTicker.zip). They are
not used from the HTML at all.
| Params |
| Params listed in the WMTickerDefault.prm
file must be formatted as: <param>=<value> |
| |
|
| Param Name |
Description |
| feed |
News feed URL, must be on the exact same
machine as classes |
| target |
Default frame target for clickable links def:
"newsflash" |
| font |
Font name |
| size |
Size in points |
| style |
BOLD, ITALIC, or BOLD+ITALIC
default is none |
| textshadow |
True/False default is false |
| fgcolor |
Text color (rrggbb format) default is Red |
| bgcolor |
Background color default is White |
| hicolor |
Highlighted color (for clickable links)
default is Blue |
| tickerspeed |
Default ticker speed |
| tickerpause |
Default ticker pause |
| tickerlifetime |
Default ticker lifetime |
| tickerrepeat |
Default ticker repeat time |
| ticker.. ticker9 |
Formatted like the feed lines |
| background |
URL for a background image drawn behind the
ticker text |
| foreground |
URL for a foreground image drawn on top of
the ticker text |
| drawarea |
Specify a rectangle where the drawing of the
ticker takes place |
| format |
Is "x;y;width;height" |
| leftedge |
Leftmost pixel to pause at, default: 0 |
| rightedge |
Rightmost pixel to start drawing from,
default: applet width |
| noscroll |
Tickers appear at leftedge, instead of scrolling in, default: false |
| Feed Format |
Feed lines should be formatted as:
<a [option1]=[value1] [option2]=[value2] ..>[Text
to be shown]</a> |
| |
|
| Anchor Option |
Description |
| id |
id number for this ticker message |
| href |
URL to go to when the ticker is clicked |
| target |
Target frame name, default is "newsflash" |
| speed |
Delay in milliseconds between each 'tick' of
the ticker |
| pause |
Time to wait when the message reaches the
left edge |
| lifetime |
Time the ticker message is in the queue |
| repeat |
Number of times to repeat the message |
| reconnect |
Before reading the feed URL again, default is
5m
This option should only be on a line by itself,
ex.
<a reconnect=3m></a>
times are specified as:
milliseconds ex. 30 is 30ms
seconds ex. 5s is 5 seconds
minutes ex. 5m is 5 minutes
|
|