NewsTicker
PARAMETERS
|
A parameter is set in the applet tag in the following format
<param name=paramname value=paramvalue>
- newsURL
The URL where the news are read from. The news needs to be in XML format
as displayed above.
- header
The news ticker applet header. This header is always visible and does not scroll.
- headerFont
The font used for the applet header.
<param name=headerFont value="Arial,bold,16">
The first field is the font name, the second is plain, bold, or bolditalic.
The last field is the point size of the font.
- headerColor
The color used for the applet header.
<param name=headerColor value="red">
<param name=headerFont value="#c0c0c0">
The color can be set using one of the following color names; black, blue,
cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, white,
or you can use the URL hex code for the color.
- headerAlignment
The horizontal alignment of the applet header.
<param name=headerAlignment value="left">
<param name=headerAlignment value="center">
<param name=headerAlignment value="right">
- newsHeaderFont
Each news item has a header. This is the font used for the header.
<param name=newsHeaderFont value="Arial,bold,11">
- newsHeaderColor
The color used for the news item header.
<param name=newsHeaderColor value="blue">
- newsFont
The font used for the news item body.
<param name=newsFont value="Arial,plain,11">
- newsColor
The color used for the news item body.
<param name=newsColor value="gray">
- moreLinkText
Each news item can have a link to a web page. The default text of this
link is 'more'. Use this parameter to set the text of this link.
<param name=moreLinkText value="read more...">
- moreLinkColor
The color used for the more link.
<param name=moreLinkColor value="red">
- target
The default window to open the url of the more link is the
same window as the applet is in. Use this parameter to control
which window the url is openened in. See
here for target details.
<param name=target value="window_name">
- background
The background color of the applet.
<param name=background value="orange">
- scrollSpeed
The speed of the scrolling. The scrolling can be set with a value
from 0 (no scrolling) through 10 (fast scrolling).
<param name=scrollSpeed value="6">
- border
You can display a border around the applet and applet header.
Control the color of the border by seperating the
border type and color with a comma.
<param name=border value="none">
<param name=border value="solid">
<param name=border value="up">
<param name=border value="down">
<param name=border value="grooved">
<param name=border value="embossed">
<param name=border value="embossed,orange">
<param name=border value="grooved,#c0aaff">
- wrapSpace
By default, the first news item starts again at the bottom when the
last has left the top of the applet. Set this parameter to control
the space between the last item and where the first one starts again.
Use -1 for the default behavior.
<param name=wrapSpace value="100">
- newsXMLTag
You can control the xml tag used for each news item. The default tag
is <news>. Specify the xml tag without the enclosing
< and >.
<param name=newsXMLTag value="news_item">
- newsHeaderXMLTag
You can control the xml tag used for the news header. The default tag
is <header>. Specify the xml tag without the enclosing
< and >.
<param name=newsHeaderXMLTag value="news_header">
- newsBodyXMLTag
You can control the xml tag used for the news body. The default tag
is <body>. Specify the xml tag without the enclosing
< and >.
<param name=newsBodyXMLTag value="news_body">
- newsLinkXMLTag
You can control the xml tag used for the news more link. The default tag
is <link>. Specify the xml tag without the enclosing
< and >.
<param name=newsLinkXMLTag value="news_link">
|
Back to NewsTicker
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.
|