Java News Ticker Appelt

www.javanewsticker.com
info@javanewsticker.com


APPLET PARAMETERS

Ticker supports the following parameters. These can be set from HTML Applet code:

  • 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.
  • 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
  • showTitle: 'true' or 'false': determines weather to show fixed title area at the left side of the applet
  • 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
  • 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">

DATA FEEDS

Applet reads data from URL specified in feed parameter. This URL must be a link on the same server as the HTML file the applet is inserted in (due to Java security restrictions).

News output is very simple: for each news one line is title and one is link to news. Sample output:

----START OUTPUT----
Paris Hotel Fire Kills at Least 20 People (AP)
http://news.yahoo.com/...........
Congress Passes Bankruptcy Reform Bill (AP)
http://news.yahoo.com/...........
----END OUTPUT----

The script we provide for news is "news-rss.php"

HTML code for setting up 'feed' parameter for news version, looks like:

<param name="feed" value="http://www.yourdomain.com/news-rss.php">

INSTALLATION

In order to install the applet, follow these steps:

  1. copy HTML code for the applet into your page. See file ticker-news.html for sample
  2. copy the jar file in the same web directory as the HTML file that contains the applet
  3. copy images and php script (news-rss.php) in the same directory
  4. configure parameters for HTML code:
    • update correct links
    • customize fonts, colors, etc.

Should you have any trouble installing, do not hesitate to contact us.

Data feeds configuration:

  • news-rss.php - this reads a RSS feed, parses data and outputs it in a format that can be read by news version of the ticker. To change RSS feed this script reads, replace current link in this file by editing first line

FAQ

  1. Can the applet read data from other source than the scripts you provide?

    Yes, format for data feeds is very simple, so applet can read data from any URL that ouputs this format. See data feed section for more info.

  2. Can the applet show arabic fonts?

    No.