Tips and hints....How do I add a border to the applet?
How do I use a background with an applet? How do I link to another page from
the applet?
| | This is a basic border and it is made
using the table code. Just before the applet code is written, in your web page,
add the following code: <table
width="246" bordercolor="#CC3399" cellspacing="0" cellpadding="0" border="2">
<tr><td> Type in the applet code and right after the </applet>
tag and on the same line add the closing tags for the table: </td></tr></table> |
Hint #1. Your applet will show
a gray line at the bottom if the closing tags for the table are not on the same
line as the closing </applet> tag. Hint #2. The border size can be
changed, just type in a new number over 1. Zero gives no border. Hint #3
The color is changed by typing in a new Hex color value. A link to a Hex color
chart is at the bottom of this page. You can also use some of the color names
such as: "red" "pink" "yellow" "black" etc. Try some of these from the following
table. More can also be found on the web. When putting this in your code the color
name goes inside quotes e.g "red"
antiquewhite
aliceblue aquamarine
blueviolet brown
cadetblue chartreuse
| darkgray darkgreen
darkmagenta darkorange
darkorchid darkred
lightsalmon | Link
to the Hex Color Values
Another version for borders is adding a background to the table.
| | Changes to the table code to add a background
like this one is in red: <table
width="246" bordercolor="#004080" cellspacing="4" cellpadding="10"
border="2" background="cloudsm.gif" > <tr><td>
Add the applet code and then on the
same line to close the applet and the table, add: </applet>
</tr></td></table> I used this background in this
table, feel free to use it. | Linking to another
page... |
Place this extra line immediately after the beginning
line of the applet code. Then add the rest of your code.
You can also direct the link to an image in a folder on
your server. eg value="images/pic.jpg"
<param name="href" value="http://YOUR
WEB SITE URL OR LINK.html">
When the applet is clicked it will take your visitor to
your page or image that you have linked too.
| Tutorial
Index
Home | Lake
applet tutorial | Horizon
applets | Snow applet
tutorial |Overlay Tutorial | Tips and Hints
| Publish to Web
| Resources
|
Copyright
© 2000 Lorraine's Lakes |