Copyright 1999 Lawrence Goetz
Welcome to Goetz's Banner. With this Java applet you can have a banner display on your page where the images in the banner change. As the images change, they zoom into the screen. You can have multiple URLs for the banner. For example, each image can have it's own URL. The images can be displayed in a specified order, or in a shuffled order. You can even have just one image displayed out of all the images, for a random banner ad.
Here is an example of the applet.
For some reason, Internet Explorer 3.0x does not zoom the images the first time through. It has a problem displaying images not full size on the first display of each image. Internet Explorer 4.0x worked fine. On both Internet Explorer and Netscape, the first time the images are displayed they might be choppy. However on subsequent passes they look great.
Below 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.
Your html file will be referring to gbanner.class. Don't forget to upload the class file when you upload your html file. You will also need to upload the registered key file, gboption.ini. If that file is not uploaded, the applet will display an unregistered message.
<!-- Goetz's Banner Applet v2.0 Copyright Lawrence Goetz 1999
-->
<!-- Web: http://www.lawrencegoetz.com/ E-mail: goetz@lawrencegoetz.com
-->
<!-- Adjust the width and height of the
applet here. -->
<applet code=gbanner.class name=gbanner width=
height=>
<!-- Enter in your background color here
-->
<param name=background value="">
<!-- Enter in your images here. -->
<param name=imageN value="">
<!-- Enter in your URL links for the images
here. -->
<param name=URLN value="">
<!-- Enter URL's target (if using frames)
here. -->
<param name=target value="">
<!-- Enter in your link information here.
-->
<param name=infoN value="">
<!-- Enter in the zoom option here.
-->
<param name=zoom value="">
<!-- Enter in the time to pause between
images here. -->
<param name=pauseN value="">
<!-- Should the order of the images be
shuffled. -->
<param name=shuffle value="">
<!-- Should the applet display only one
image. -->
<param name=one value="">
<!-- Should the applet pause between images
if the mouse is in the applet. -->
<param name=pauseable value="">
Sorry, but you cannot read Java Applets.
You need either Netscape or Internet Explorer.
If you are using one of these browsers, you need
to have Java enabled.
</applet>
Here are detailed explanations of the applet parameters.
The size of the applet is given in the width and height values in the applet
tag.
<applet code=gbanner.class name=gbanner width= height=>
For example if you want a 400 by 100 pixel applet, you write:
<applet code=gbanner.class name=gbanner width=400 height=100>
If you make the size too small, the image will get cropped at the edges. If you leave off a value, the applet will not be displayed, and an error message may appear.
Background Color:
Here are the color choices:
white
black
light gray
gray
dark gray
red
pink
orange
yellow
green
magenta
cyan
blue
To have a white background do:
<param name=background value="white">
If you don't specify the parameter tags, the default is a white background. If you make a spelling mistake you will get the wrong color. The name of the color must be in lower case.
<param name=imageN value="">
Your images can be gif or jpg. However Netscape seemed picky about some jpgs when I viewed them over the internet; I got an invalid jpg error. Internet Explorer didn't complain about those images. So test it out and if jpg doesn't work for some images, use gif instead.
You enter in your images as follows: imageN, where N is the image number,
and value is the image file. If you have only one image, and for example
the file is ball.jpg, you would do:
<param name=image1 value="ball.jpg">
If you have other images, just create additional lines and increment the
image number. To add a second image, for example bat.jpg, you would do:
<param name=image2 value="bat.jpg">
If you want to make an image link to a web page you have two ways to do so.
If all the images should link to the same address then enter in the URL as
follows:
<param name=URL value="">
Example:
<param name=URL value="http://www.lawrencegoetz.com/">
If you want to have each image link to a different address, such as multiple
ads. You enter them as follows:
<param name=URLN value="">
Where N in URLN is the image number. Value is the address to link to. For
example to have image one link to somewhere:
<param name=URL1 value="http://www.lawrencegoetz.com/">
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.
If you want to let the visitor know what they will be clicking on, you can give information when the mouse is moved over the applet. You can have the same information for all the images, or different info for each image.
If you want the same information for all the images do:
<param name=info value="">
Fill in the value as the information to be displayed.
Example:
<param name=info value="Visit my page">
If you want a separate information for each image, do the following:
<param name=infoN value="">
Where N in infoN is the image to get the information. value is the information
to be displayed.
Example:
<param name=info1 value="Cool Site">
If you don't want the banners to zoom in, you can turn that effect off. To
turn it off do:
<param name=zoom value="false">
If you want zoom on do:
<param name=zoom value="true">
If you leave out the zoom parameter line, zoom is enabled by default.
To make the applet pause between images, you can enter in the following
command:
<param name=pause value="">
Example that pauses for 2 seconds:
<param name=pause value="2">
Where value is the time in seconds to pause. This will pause the same time
for each image. If you want to have different times for each image then do:
<param name=pauseN value="">
Where N in pause is the image to pause at. Such as:
<param name=pause1 value="2">
If you want to have the images appear in a random order, you can have them
shuffled each time though the set. The applet by default does not shuffle
the images. If you want to have them shuffled do:
<param name=shuffle value="true">
To not have them shuffled, you would do:
<param name=shuffle value="false">
If you leave out the shuffle parameter line, shuffle is disabled by default.
Tells the applet to display only one image. When used with the shuffle, will
display a random image each time the applet is displayed. The default is
to display all the images. If you want only one image, do:
<param name=one value="true">
If you want all the images do:
<param name=one value="false">
If you leave out the one parameter line, one is disabled by default.
This is used, if you want to have the applet pause between images when the
mouse is inside the applet. The default is on, because it prevents a visitor
from clicking on the wrong image. To turn this option off, you do:
<param name=pauseable value="false">
To have it on, you do:
<param name=pauseable value="true">
If you leave out the pauseable parameter line, pauseable is enabled by default.
If a visitor doesn't have Java, or it's not enabled, they will see:
Sorry, but you cannot read Java Applets. You need either Netscape or Internet
Explorer. If you are using one of these browsers, you need to have Java
enabled.
You can replace that text with any text or HTML code you want visitors without Java to see. For example, it can be a message saying they don't have Java or it can be an animated gif with a link.
Check my Goetz's Banner page to see if there is a later version of this applet.
Send me your questions, comments, suggestions.