Instructions

Here is my clock applet. Don't you see it? Upgrade your browser!

Put file ClockManApp.class in your HTML directory. Place next text into your page:

<APPLET CODE="ClockApp.class" WIDTH=200 HEIGHT=200>
Some text for users of browsers which does not support Java: You need upgrade your browser!
</APPLET>

and you will see my clock applet on your page!

You can change HEIGHT and WIDTH as you want. Also you can specify ALIGN as in <IMG>: LEFT, RIGHT, BASELINE etc.

If you want keep HTML files and Java classes in different directories, you can use CODEBASE attribute of <APPLET> tag. For example, I put my page into /~ivan_mcg/appletsdoc/, and applet's class file in /~ivan_mcg/classes/. I must use next code:

<APPLET CODE="ClockApp.class" WIDTH=200 HEIGHT=200 CODEBASE=/~ivan_mcg/classes>
You need upgrade your brouser!
</APPLET>

In fact, applet can be in another man's directory or even in another server (you must define protocol and server name in CODEBASE attribute).

You can set a number of parameters using <PARAM> tag - <PARAM NAME='ParamName' VALUE='ParamValue'>. Place them after <APPLET> tag (see examples).

Parameters available:

FACE
This optional parameter lets you change color of ClockMan's face. ParamValue must be color in one of two formats: as hexadecimal number (#RRGGBB) or list of 3 decimal numbers (red, green and blue components), delimited by number of spaces, commas and semicolons (for example, '255,1128;;;0' is valid value).
BACK
This optional parameter lets you change color of background. ParamValue must be color in one of two formats (see about FORE parameter).
NOSE
This optional parameter lets you change color of ClockMan's nose.
HCOL
Color of hour arrow (opt.).
MCOL
Color of minute arrow (opt).
SCOL
Color of second arrow (opt).

Examples

<APPLET CODE="ClockApp.class" WIDTH=120 HEIGHT=120>
<PARAM NAME=NOSE VALUE=#FF8080> <PARAM NAME=FACE VALUE='255,0; 0'> <PARAM NAME=SCOL VALUE=#000000>
You need upgrade your browser!
</APPLET>
You need upgrade your browser!
<APPLET CODE="ClockApp.class" WIDTH=120 HEIGHT=120>
<PARAM NAME=FACE VALUE=#3F3F5F> <PARAM NAME=BACK VALUE='240,240;240'> <PARAM NAME=HCOL VALUE='255,255,255'>
You need upgrade your browser!
</APPLET>
You need upgrade your browser

Read more about <Applet> tag.

Ivan "MCG" Boldyrev,

bii714@cclib.nsu.ru

© Ivan the MCG, 1998. Developed with Webford 2.01.

You're at the KidsRanch: www.kidsranch.org | A Project of Eric Elder Ministries | Send email to Eric at eric@theranch.org
Mom's and Dad's!  There's a site for you, too, at www.theranch.org
Copyright © 2000-2004 Eric Elder | Link to this site! | Sign up for our newsletter!