Hosting
Domain Names
Search
Portal | Resources | Templates | Generators | Affiliates | Shareware | Scripts | Articles
XML RSS Feeds

FreeText

For information on how to add java applets on your web page, go to http://www.newbiehangout.com/scripts/applet1.htm

General Description:

With this little Applet you will be able to display many pages of information in just one area of your webpage. In addition this Applet will give your web page a dynamic animated feel. The applet will automatically size itself to the available area given to it by the HTML form. (The WIDTH and HEIGHT of the APPLET tag.)

Important: Your browser must be Java enabled to properly view this page.

Here's how to do it:

1.  Download the "freetext.zip" by clicking here
2.  Unzip the freetext.zip
3.  Extract and Save "SIRtext.class" on the same directory where your page html resides
4.  Copy and paste the code below to your HTML page source and edit it according to your requirements
5.  Upload your html page and "SIRtext.class" on the same directory at your server.
 

<CENTER>
<APPLET CODE="SIRtext.class" WIDTH=200 HEIGHT=200>
<PARAM NAME="TITLEFONT" VALUE="1">
<PARAM NAME="TITLECOLOR" VALUE="10">
<PARAM NAME="BGCOLOR" VALUE="2">
<PARAM NAME="BORDERWIDTH" VALUE="0">
<PARAM NAME="BORDERCOLOR" VALUE="2">
<PARAM NAME="SCROLLSPEED" VALUE="70">
<PARAM NAME="DISPLAYTIME" VALUE="250">
<PARAM NAME="MAXLINES" VALUE="45">
<PARAM NAME="FONT1" VALUE="Helvetica|B|14">
<PARAM NAME="FONT2" VALUE="Helvetica|N|10">
<PARAM NAME="FONT3" VALUE="Helvetica|N|12">
<PARAM NAME="FONT4" VALUE="Helvetica|B|18">
<PARAM NAME="FONT5" VALUE="Helvetica|B|24">
<PARAM NAME="FONT6" VALUE="Helvetica|B|18">
<PARAM NAME="Color1" VALUE="150|150|150">
<PARAM NAME="Color2" VALUE="0|0|0">
<PARAM NAME="Color3" VALUE="120|190|190">
<PARAM NAME="Color4" VALUE="150|220|220">
<PARAM NAME="Color5" VALUE="0|0|0">
<PARAM NAME="Color6" VALUE="90|160|160">
<PARAM NAME="Color7" VALUE="247|156|57">
<PARAM NAME="Color8" VALUE="27|162|67">
<PARAM NAME="Color9" VALUE="248|168|77">
<PARAM NAME="Color10" VALUE="255|255|255">
<PARAM NAME="TEXTLINE1" VALUE="1|10|           ">
<PARAM NAME="TEXTLINE2" VALUE="5|10|      Welcome  ">
<PARAM NAME="TEXTLINE3" VALUE="5|10|         to the   ">
<PARAM NAME="TEXTLINE4" VALUE="5|10|      Scrolling ">
<PARAM NAME="TEXTLINE5" VALUE="5|10|         Text    ">
<PARAM NAME="TEXTLINE6" VALUE="5|10|        Applet   ">
<PARAM NAME="TEXTLINE7" VALUE="5|10|           ">
<PARAM NAME="TEXTLINE8" VALUE="3|10| ">
<PARAM NAME="TEXTLINE9" VALUE="3|10|Increase the amount of information">
<PARAM NAME="TEXTLINE10" VALUE="3|10|you   display   on   your    Webpage">
<PARAM NAME="TEXTLINE11" VALUE="3|10|without increasing the clutter.">
<PARAM NAME="TEXTLINE12" VALUE="3|10| ">
<PARAM NAME="TEXTLINE13" VALUE="3|10| ">
<PARAM NAME="TEXTLINE14" VALUE="3|10|With  this  little  Applet  you  will  be">
<PARAM NAME="TEXTLINE15" VALUE="3|10|able  to   display   many   pages  of">
<PARAM NAME="TEXTLINE16" VALUE="3|10|information in just one area of your">
<PARAM NAME="TEXTLINE17" VALUE="3|10|webpage.">
<PARAM NAME="TEXTLINE18" VALUE="3|10| ">
<PARAM NAME="TEXTLINE19" VALUE="3|10| ">
<PARAM NAME="TEXTLINE20" VALUE="3|10| ">
<PARAM NAME="TEXTLINE21" VALUE="3|10| ">
<PARAM NAME="TEXTLINE22" VALUE="3|10|In addition this Applet will give your">
<PARAM NAME="TEXTLINE23" VALUE="3|10|web page a dynamic animated feel.">
<PARAM NAME="TEXTLINE24" VALUE="3|10| ">
<PARAM NAME="TEXTLINE25" VALUE="3|10| ">
<PARAM NAME="TEXTLINE26" VALUE="3|10|This Java Applet is only 7 Kbytes  in">
<PARAM NAME="TEXTLINE27" VALUE="3|10|size  and therefore has a very short">
<PARAM NAME="TEXTLINE28" VALUE="3|10|load time for your visitors.">
<PARAM NAME="TEXTLINE29" VALUE="3|10| ">
<PARAM NAME="TEXTLINE30" VALUE="3|10| ">
<PARAM NAME="TEXTLINE31" VALUE="3|10| ">
<PARAM NAME="TEXTLINE32" VALUE="3|10| ">
<PARAM NAME="TEXTLINE33" VALUE="3|10| ">
<PARAM NAME="TEXTLINE34" VALUE="3|10| ">
<PARAM NAME="TEXTLINE35" VALUE="3|10| ">
<PARAM NAME="TEXTLINE36" VALUE="3|10|Like all our  Applets, no knowledge">
<PARAM NAME="TEXTLINE37" VALUE="3|10|of  Java  programming  is  required ">
<PARAM NAME="TEXTLINE38" VALUE="3|10|and with the help and example files ">
<PARAM NAME="TEXTLINE39" VALUE="3|10|supplied  you  should   find  it  very">
<PARAM NAME="TEXTLINE40" VALUE="3|10|easy to implement.">
<PARAM NAME="TEXTLINE41" VALUE="5|10| ">
<PARAM NAME="TEXTLINE42" VALUE="5|10| ">
<PARAM NAME="TEXTLINE43" VALUE="3|10| ">
<PARAM NAME="TEXTLINE44" VALUE="3|10| ">
<PARAM NAME="TEXTLINE45" VALUE="3|10| ">
</APPLET>
</CENTER>

To understand above text and modify it according to your requirements, follow this guide:

Scrolling Text Applet Help File.

The following is the complete listing of the possible parameters that may be used to configure this applet. If any of the parameters are not present within the APPLET tag in your HTML form then the Applet will assume the default value, as indicated in the right hand column.

It is recommended that you look at the example HTML files provided in conjunction with the following table in order to understand fully how to use each parameter.
 


 

SIRtext Applet Parameters.

Parameter Name

Description

Range of Values

Typical Value

Default Value if
Parameter not present

TITLE 

The Tree Title 

Text 

This is the Main Title. 

TITLEFONT

The number of the Font 

1 - 10 

1

TITLECOLOR 

Title text color number 

1 - 10 

1

BGCOLOR 

Background color number 

1 - 10 

1

BORDERWIDTH 

The width in pixels of the Border 

1 - 30 

0

BORDERCOLOR 

Border color number 

1 - 10 

1

SCROLLSPEED 

Speed at which the Applet will Scroll the Text.
The higher the number the faster the scroll. 

0 - 100 

70 

97

DISPLAYTIME 

This is the amount of time that the Applet will pause
scrolling between each page of text. 

0 - 1000 

50 

1

MAXLINES 

The Maximum number of lines of text the Applet will
attempt to read from the TEXTLINE parameter. 

1 - 10000 

30 

1

TEXTLINE1 

Font Number|Color number|Text Data 

See Below for details of the TEXTLINE parameter 

TEXTLINEn 

FONT1 

Font Definition 

Type|N,B,I|size

TimesRoman|B|14 

Courier|N|12

N - Normal

TimesRoman|I|12 

B - Bold 

TimesRoman|BI|14 

FONT10

I - Italic

Color1 

Color definition 

Red Green Blue 

255|255|255 (White) 

255|255|255

0-255|0-255|0-255

0|0|0 (Black) 

0|0|0

255|0|0 (Red) 

Color10

255|128|0 (Orange)


 

The TEXTLINE Parameter.

Each line of text should be entered using a TEXTLINEn parameter, where n is the line number. So the first line will be entered with a parameter of TEXTLINE1, the second with TEXTLINE2 and so on up to a maximum line number which has been set by the MAXLINES parameter. (see above) This table should be viewed in conjunction with the example files in order to obtain a clearer understanding.

Description

Example Value

Explanation

Font

1

This specifies the font with which to display this line of text.

Text Color

1

This specifies the color of this line of text.

Text

A line of Text

This is the text for this line.


 

Here is an example of how the HTML should look with an explanation of each line on the right.

<APPLET CODE="SIRtext.class" WIDTH=150 HEIGHT=200>

The APPLET tag defining the size of the Applet and the Applet to use.

<PARAM NAME="TITLE" VALUE="My Title">

Set the Title to My Title

<PARAM NAME="TITLEFONT" VALUE="1">

This means use the font defined by parameter FONT1 for the title.

<PARAM NAME="TITLECOLOR" VALUE="2">

The number of the Color to use for the Title text.

<PARAM NAME="BGCOLOR" VALUE="3">

The number of the Color to use for the background. 

<PARAM NAME="BORDERWIDTH" VALUE="1">

Set the width of the Border to 1 pixel, 0 means no border.

<PARAM NAME="BORDERCOLOR" VALUE="2">

Set the Border color to the Color defined by parameter Color2

<PARAM NAME="SCROLLSPEED" VALUE="70">

Set the Scroll speed to 70.

<PARAM NAME="DISPLAYTIME" VALUE="250">

Set the Display time to 250

<PARAM NAME="MAXLINES" VALUE="10">

Set the Maximum lines to 10

<PARAM NAME="FONT1" VALUE="Helvetica|B|14">

Define font 1 as Style=Helvetica, Size=14,BOLD

<PARAM NAME="FONT2" VALUE="Helvetica|N|10">

Define font 2 as Style=Helvetica, Size=10,NORMAL

<PARAM NAME="FONT3" VALUE="Courier|B|10">

Define font 3 as Style=Courier, Size=10,BOLD

<PARAM NAME="FONT4" VALUE="Courier|B|18">

Define font 4 as Style=Courier, Size=18,BOLD

<PARAM NAME="Color1" VALUE="150|150|150">

Define RGB for Color 1

<PARAM NAME="Color2" VALUE="0|0|0">

Define RGB for Color 2 

<PARAM NAME="Color3" VALUE="120|190|190">

Define RGB for Color 3

<PARAM NAME="Color4" VALUE="150|220|220">

Define RGB for Color 4 

<PARAM NAME="Color5" VALUE="0|0|0">

Define RGB for Color 5 

<PARAM NAME="Color6" VALUE="90|160|160">

Define RGB for Color 6 

<PARAM NAME="Color7" VALUE="247|156|57">

Define RGB for Color 7 

<PARAM NAME="Color8" VALUE="27|162|67">

Define RGB for Color 8 

<PARAM NAME="Color9" VALUE="248|168|77">

Define RGB for Color 9 

<PARAM NAME="Color10" VALUE="255|255|255">

Define RGB for Color 10 

<PARAM NAME="TEXTLINE1" VALUE="2|2|LINE 1">

Text for line 1 using font 2 and color 2

<PARAM NAME="TEXTLINE2" VALUE="1|2|LINE 2">

Text for line 2 using font 1 and color 2

<PARAM NAME="TEXTLINE3" VALUE="2|8|LINE 3">

Text for line 3 using font 2 and color 8

<PARAM NAME="TEXTLINE4" VALUE="2|2|LINE 4">

Text for line 4 using font 2 and color 2

<PARAM NAME="TEXTLINE5" VALUE="2|2|LINE 5">

Text for line 5 using font 2 and color 2

<PARAM NAME="TEXTLINE6" VALUE="4|2| LINE 6">

Text for line 6 using font 4 and color 2

<PARAM NAME="TEXTLINE7" VALUE="2|6|LINE 7">

Text for line 7 using font 2 and color 6

<PARAM NAME="TEXTLINE8" VALUE="1|2|LINE 8">

Text for line 8 using font 1 and color 2

<PARAM NAME="TEXTLINE9" VALUE="2|2|LINE 9">

Text for line 9 using font 2 and color 2

<PARAM NAME="TEXTLINE10" VALUE="2|2|LINE 10">

Text for line 10 using font 2 and color 2

</APPLET>

Then end APPLET tag.


 

Some Common Color Definitions.

Color

Red

Green

Blue

Black 

000

000

000

White 

255

255

255

Grey 

128

128

128

Red 

255

000

000

Orange 

255

128

000

Yellow 

255

255

000

Green 

000

255

000

Blue 

000

000

255

Purple 

200

000

200

Brown 

128

064

000


 

More on Defining Fonts.

Font Types - The different Type faces generally available are,

Courier
Dialog
Helvetica
Symbol
TimesRoman

NewbieHangout Graphics Logo

NOTE: Use of this Web Site, content or services herein, constitutes acceptance of the Conditions of Use and our Privacy Policy. Content subject to a liberal Creative Commons License and Copyright © 2001-2004 NewbieHangout.com. PH: 323-232-2648. World rights reserved.