Demo
Description
The applet displays a regular button with text. When pressed it will display the URL site that it's referred to. The background of the applet can changed to a different colour or an image so that it can match the background of the current page it's displayed in.
Usage/Parameters
| nButtons | The number of buttons to display. |
| row | The number of rows in the applet. |
| col | The number of columns in the applet. |
| bgImg | The background image to be displayed. (optional) |
| bgColour |
The background colour to be displayed. (optional) The list of colours
are:
|
| textColour | The text colour to be displayed in. (optional) |
| target | The frame in which the URL should be displayed in. (optional) |
| text?? | The text which the button displays, "text0" is associated to the first button. |
| link?? | The link which the button refers to, "link0" is associated to the first button. |
Example
Here is an example of the HTML source code for embedding this applet:
<applet archive="Buttons.jar" code="Buttons.class" width="150" height="25">
<param name="target" value="main">
<param name="row" value=1>
<param name="col" value=2>
<param name="nButtons" value=2>
<param name="text0" value="Home">
<param name="link0" value="../home.html">
<param name="text1" value="Java">
<param name="link1" value="../java.html">
</applet>
Version Updates
Version 1.1
- Made the applet compatible with web browsers which only support Java 1.0. Added background support with either have a background as an image or a colour.
Version 1.2
- Made the applet so that the entire address doesn't have to be entered when having references to a url.
Download
Download this applet now. (source code included)
