Goetz's Marquee v1.01

Copyright Lawrence Goetz 1998

This applet will take a series of lines of text and display them one by one on the screen. It will display the letters of the text one by one on the screen and then scroll the excess of the letters off the screen. This is similar to a movie marquee. You can turn off the scrolling effect and display the line instantly.

The applet can be used to make buttons, titles, banners, etc. Look at my example page to see what I mean.

You can vary many aspects of the applet; size, color, speed, etc. I have tested it on Netscape 3.04 and Internet Explorer 3.0. It worked fine on both these browsers. If for some reason it's not working, restart your browser and try again.

This applet is shareware. If you don't register it, it will constantly display in the status part of the browser:
Goetz's Marquee is UNREGISTERED! Webmaster, please register.


Registration is $7 US funds and it will remove the unregistered version text.
Click here for registration information.

Here is the code you add to your web page, to run the applet. You don't need to have the comment lines, but they help you read the code. I'd appreciate if you left in the comment about the title of the applet and where it can be found. This is so people who want to know what it is, know where to find it. You'll also need to place the gmarquee.class file in the same directory as you place your html file that loads the applet.

<!-- Goetz's Marquee Applet. Copyright Lawrence Goetz 1998. -->
<!-- Web: http://pages.prodigy.com/goetz E-mail: goetz@dorsai.org -->

<!-- Adjust the width and height of the applet here. -->
<applet code=gmarquee.class name=gmarquee width= height= >

        <!-- Enter in your lines of text here.  -->
        <param name=line1 value="">

        <!-- Enter in your background color here. -->
        <param name=bcolor value="">

        <!-- Enter in your text color here. -->
        <param name=tcolor value="">

        <!-- Enter in your font size here. -->
        <param name=font value="">

        <!-- Enter URL to link to here. -->
        <param name=url value="">

        <!-- Enter URL's target (if using frames) here. -->
        <param name=target value="">

        <!-- Enter information of the link here. -->
        <param name=info value="">       

        <!-- Enter display speed in milliseconds here . -->
        <param name=speed value="">

        <!-- Enter pause time between lines here. -->
        <param name=pause value="">       

        <!-- Enter the length of the character display here. -->
        <param name=length value="">

        <!-- Enter true or false for scrolling the text here. -->
        <param name=scroll value="">

        <!-- HTML code for non Java visitors goes here. -->
       
You don't have Java.

</applet>

Here is a sample applet.

Here is an example of a page using Goetz's Marquee for buttons, titles, and signs.

Here is a template html file with the applet code.

Here are detailed explanations of the applet parameters.

Applet Size:

The size of the applet is given in the width and height values in the applet tag.
<applet code=gmarquee.class name=gmarquee width= height= >

For example if you want a 400 by 50 pixel applet, you write:
<applet code=gmarquee.class name=gmarquee width=400 height=50 >

If you make the size too small, the text will get cropped at the edges. If you leave off a value, the applet will not be displayed, and an error message may appear.

Text to Display:

You can display many lines of text. You enter them as follows:
<param name=line1 value="">
<param name=line2 value="">
etc.

Fill in the values between the " " with the line of text you want displayed. You can not use " in your line of text. Use two ' in a row. For each line you must make a new line number. As show above where it is in the form:
<param name=lineN value=""> where N is the line number

Example:
<param name=line1 value="Hello">

If no lines of  text are given, the default text is:
This applet was designed by Lawrence Goetz.
http://pages.prodigy.com/goetz
goetz@dorsai.org

If you skip a line number, all the lines after it will not be displayed. So if you have line1, line2, then line4 the program will display only lines 1 and 2.

If in any of the parameters you don't give beginning and ending " marks, the program will not perform what you asked it to.

Text & Background Colors:


When using the color names, be sure to place them in " ".

Here are the color choices:

white
black
light gray
gray
dark gray
red
pink
orange
yellow
green
magenta
cyan
blue


For example to make your text in light gray:
<param name=tcolor value="light gray">
To have a white background do:
<param name=bcolor value="white">

If you don't specify either of these parameter tags, the defaults are black text and white background. If you make a spelling mistake you will get the wrong color. The name of the color must be in lowercase.

Font Size:

The size of the font. For example size 14:
<param name=fontsize value="14">

If this tag is not given a value, the default is 12.

URL Link:

You can have the applet linked to a web page or file. Placing an address in here will link the applet to it.
<param name=url value="">

For example, to link an applet to my page, you would do:
<param name=url value="http://pages.prodigy.com/goetz">

You can either leave the tag's value as "" or remove the whole line, if you don't want a link.

Target:

If you are using frames on your page, you need to specify the target for the URL.       
<param name=target value="">

This takes the same value that you'd give the target in regular HTML code. The target is the name of the frame to display the URL.

_top will display the site in the main window of the browser (as if there were no frames).
_blank will display the site in a new browser window.
_self will display the site in the frame that the applet is in.
name will display the site in the frame specified by name.

Example:
<param name=target value="main">
This will display the site in the frame called main.

Information:

When the visitor moves the mouse over the applet, you can give the title of the web link they will be clicking on.You place the title here:
<param name=info value="">

An example would be:
<param name=info value="Visit my home page">

You can either leave the tag's value as "" or remove the whole line, if you don't want a title.

Speed:

The speed is the rate in milliseconds that new characters are displayed on the screen.

For example to display the characters at a rate of 100 milliseconds, you'd do:
<param name=speed value="100">

1000 milliseconds = 1 sec.
500 milliseconds = 1/2 sec.
100 milliseconds = 1/10 sec.

Default value is 200 milliseconds.

Pause Time:

The time the text pauses in the middle is set as:
<param name=pause value="2">
Where the value is the number of seconds to pause. If this tag is not given a value, the default is 1.

Length:

You need to set the amount of characters that can be displayed inside the applet. This is used in scrolling. Once the amount of characters are displayed, the characters begin to slide to the left and new characters appear on the right.

<param name=length value="24">
This displays 24 characters on the screen at once.

If no value is given, the default is 40.

Scroll:

If you do not want the applet to scroll, set the value to false:

<param name=scroll value="false">

The default value is true. Scrolling makes the text slide across the screen from right to left, like a sign outside a movie theater does.

Non Java Visitors:

If a visitor doesn't have Java, or it's not enabled, you can give them alternative HTML. Just place any HTML code you want to be displayed under:
<!-- HTML code for non Java visitors goes here. -->

For example you can give them the code for the link.
<a href="http://pages.prodigy.com/VDJW65A">Lawrence Goetz's Home Page</a>

Only visitors without Java, or without Java enabled will see this link. Visitors with Java and it enabled will see the applet.

Visit my home page for more shareware programs.

I have other Java applets and scripts on my home page.

Check my home page to see if there is a later version of this applet.

Send me your questions, comments, suggestions.