Disclaimer: You can download this free for use it anywhere for commercial or non-commercial purposes. (you cannot sell this) This applet and its documentation is given on an as-is basis and I assume no responsiblity of anything. However, do send me the URL of the page where this is being used, so that I can add it to the llinks-page.
Features of this applet:
Sample headline text file (news.txt):
(Note: The URL inside the < and > character at the beginning
of the line becomes the link for the headline!) Also, see below
for the table of colors.
<http://www.mozilla.org>News! Extra! Extra Netscape releases source
code at mozilla.org
This is another headline....
<http://java.sun.com>Sun releases Java Development Kit 1.2 Beta
! Get it while it is hot.
<http://www.news.com>For unpartial tech news, visit CNET's news
site at www.news.com
Color Reference Table: (use any of the
following color codes in the applet parameter weather it is background
color or the text color or link color. the color code are basically
Red,Green,Blue
values
where Red,Green and blue are
numbers from 0 to 255)
255,0,0 | 255,255,255 [WHITE] |
0,255,0 | 64,64,64 |
0,0,255 | 128,128,128 |
0,0,0 | 128,0,64 |
128,0,0 | 255,0,128 |
0,128,0 | 0,64,128 |
0,0,128 | 0,128,255 |
255,255,0 | 128,64,0 |
128,128,0 | 255,128,0 |
0,255,255 | 128,0,128 |
0,128,128 | 255,0,255 |
2. What are all those Applet Parameters ?
Mandatory Parameters:
CONTENT - specifies the file which contains
all your headlines.
Optional Parameters:
CAPTION - what you put here is displayed
as the caption of the Applet.
LINK - what URL you give
here becomes the link for the
caption.
BODYCOLOR - Color of the applet body.
BODYTEXTCOLOR - Color of the applet's scrolling
Text.
LINKCOLOR - Color of hyper links. (Note:
Hyperlinks by default appear
in bold text)
CAPTIONCOLOR - Color of the applet's Caption.
CAPTIONTEXTCOLOR - Color of the applet's
Caption text.
FRAMENAME - The name of the frame which this
applet should control. If you
donot use frames, donot specify this
parameter.
3.How to specify links for each Headline ?
Prefix the headline with
a URL within < and > characters and that becomes the link for
that headline. (See Also: the sample news11.txt accompanying the
applet). Example: put this line the news.txt file to display the headline
with a link.
<http://home.netscape.com>
This is a link to Netscape's Site !
4.How do I add a headline which doesn't use
a link ?
Simple. Donot put the <
url> tag before the headline. (See Also: the sample news11demo.txt accompanying
the applet)
5.Bare Minimum HTML code to deploy
<CENTER>
<APPLET CODE=news.class WIDTH=250
HEIGHT=150>
<PARAM NAME="CONTENT" VALUE="news.txt">
<PARAM NAME="CAPTION" VALUE="XYZ
NEWS co">
<PARAM NAME="LINK" VALUE="http://java.sun.com">
</APPLET>
</CENTER>
6. Where else can this be used ?
You can use it like a site-guide
if you're using frames. You can keep the left side frame for the applet
itself and the right frame can be used to display the links! All you have
to do is set the name of the right side frame to the FRAMENAME applet
parameter.
7. What will be the next version ?
The next version will be
News
Applet 1.2
8. What new features will be available in the next version ?