|
Ticker supports following parameters (these can be set from HTML
Applet code):
General Parameters
-
tickerType: determines version of ticker: quotes or news. Depending on this parameter applet uses specific parameters that are listed below.
-
font: font for ticker content. Quotes version has more specific font parameters (see below).
-
bgColor: background color (RGB format)
-
fgColor: foreground color: use this if you don't want to specify for all the others.
-
delay: set rotation speed: this determines internal parameter for the rotation - how long to sleep (in miliseconds) before to rotate. set this to values around 10-20, lower means faster
-
step: set rotation speed: this determines internal parameter for the rotation - how many pixels to move at each step. this can be real values like 1.5, 1.45 etc
-
refreshDelay: data refresh parameter: how long to sleep (in miliseconds) between consecutive calls to the data feed. set this to lower values for high update rate.
-
startDelay: miliseconds to wait until rotation begins when
applet loads;
-
feed: full web URL to the script that outputs data. Example: http://yourdomain.com/ticker/feed.php
-
borderWidth: 0,1,2,3 ... - the width in pixels
-
borderColor: set border color (rgb)
-
separatorWidth: width of space to separate items (news or quotes) (in pixels)
-
separatorImage: link to separator image (relative or absolute). this is showed between items (news or quotes)
-
tickerDirection: determines rotation directions: 'lr' (left to right) or 'rl' (right to left)
-
showChangeDirectionButton: 'true' or 'false': determines weather to show or hide a button that user
can click to change direction of ticker
-
target: '_blank' or '_self': determines where to open links for symbols or news: same page or new page
-
title: text for title
-
titleUrl: link for title area
-
titleFont: font for title
-
titleBgColor: background color for the title
-
titleFgColor: foreground color for the title
-
hoverBgColor: background color when mouses is moved over an item
Quotes Version Specific Parameters - these are ONLY
for tickerType set to quotes.
symbols: comma separated list of the symbols to display. symbols should be supported by the
feed, for example current feed supports all yahoo stocks. Example:
MSFT=Microsoft,IBM,ORCL,INTC
NOTE: the applet can show names instead of symbols. Then, in the symbols parameter you can
set names like this:
MSFT=Microsoft,^GSPC=S&P 500,ORCL,INTC
As you can see, you can only set names for the symbols you want to show other name instead of symbol.
Text messages can also be added mixed with symbols. For this, start the message with '@' character. Example:
@Indices:,^DJI=Dow,^IXIC=Nasdaq,^GSPC=S&P 500,^XAX=AMEX,@Stocks:,GOOG=Google,MSFT=Microsoft
fields: determines what fields to show (ex: last, close, etc). accepted values are any string
that is output by feed. for the above MSFT sample, accepted values are: SYMBOL, NAME, LAST TIME,LAST,
CHANGE, CHANGEP, BID, ASK one predefined special value for this parameter is: ARROW: this determines where
the arrow should be displayed the NAME fields is also special: each product has NAME same as SYMBOL. in order
to set different NAME, in the "symbols" parameter value you will have to use syntax: "symbol=name" instead
of "symbol". Example:
-
symbolFont: font for symbol
-
symbolColor: symbol color
-
hoverSymbolFont: font for symbol when mouse over
-
hoverSymbolColor: background color for symbol and values when mouse over symbol
-
valueFont: font for values
-
downColor: color for values when trend is negative
-
upColor: color for values when trend is positive
-
stayColor: color for N/A text (before any data is read) and for neutral values
-
upIconURL: full web URL to the image for positive trend
-
downIconURL: full web URL to the image for negative trend
-
stayIconURL: full web URL to the image for neutral trend
-
symbolURL: link that ticker opens when user clicks a symbol. the symbol is concatenated
to this url. for example: if symbolURL is set to http://finance.yahoo.com/q?s=, for MSFT
ticker opens http://finance.yahoo.com/q?s=MSFT
-
updateType: 'multiple' or 'single': determines how to update data: using one http call for each
symbol or get values for all symbols in a single call
News Version Specific Parameters - - these are ONLY
for tickerType set to news.
-
newsHoverFont - font for news with links when mouse over. if not set font is used. Note: if a news has no link associated, newsFont is used
-
newsColor - color for news
-
newsHoverColor - color for news links when mouse over
VALUES FORMAT
Font values format is: "fontName, type, size "
- fontName is one of:
Dialog, SansSerif, Serif, Monospaced, Helvetica, TimesRoman
Courier, DialogInput, ZapfDingbats
- type is: BOLD, PLAIN or ITALIC; you can also combine like BOLD|ITALIC
- size: in pixels (ex: '14')
Example:
<param name="messageFont" value="Dialog, BOLD|ITALIC, 13">
|
|