|
|
Applet Parameters Specification
Ticker supports following parameters (these can be set from HTML
Applet code):
|
symbols
|
comma separated list of symbols to show. symbols should be supported by
the feed. Example:
MSFT,IBM,ORCL,INTC. This parameter also
supports adding name field for any symbol, so, when Setting displayFields
to show names, name instead of symbol is displayed. Here is sample usage for name field:
MSFT=Microsoft,IBM,ORCL=Oracle,INTC
As you can see, you can enter company names only for symbols you are interested, for the
other, symbol is considered as name also.
|
|
preload
|
if set to 'yes', applet will read data for all stocks before
displaying them.
|
|
speed
|
rotation speed for the ticker. values range from 1 to 9
|
|
refreshPeriod
|
how often to update stocks data (in miliseconds)
|
|
displayFields
|
set what data to show as value for stock. you can set as many fields,
only restriction is that script outputs these fields. example:
SYMBOL,NAME,LAST,CHANGE,ARROW,CHANGEP
All fields must be output by script. ARROW is a special field
that represents a trend arrow that shows up or down depending on change
or change%. Also, a special field is NAME. This is not read from the feed
but from symbols parameter.
|
|
scriptFields
|
determines what fields script returns. Example:
SYMBOL,LAST,CHANGE,CHANGEP
change this only if you change the script and you know what you
are doing
|
|
message
|
text message that is displayed before stocks. (in demo version is predefined)
|
|
onClickURL
|
URL to show pop-up when users clicks on applet. If not set, this feature
is disabled. (N/A in demo - preset to ticker homepage)
|
gridColor
bgColor
messageColor
|
colors for the grid, background and message in RBG format. ex: "200,200,200"
|
upColor
downColor
stayColor
|
color for the value when trend is positive, negative or not changed
|
|
vSpace
|
vertical spacing between text and top margin (in pixels)
|
Ticker Feed Explained
The ticker applet gets data from a URL located on the same server that
the ticker is hosted (so, on client's site). In this site, we call this
URL: feed. This is because of JavaTM security restrictions:
applets can only connect to the server they are hosted.
Please download demo to see feed protocol.
|
|