LiteClock applet

Main page

Other applets

Send a message

Instructions

Your browser does not supprot Java or Java is not enable. You can't see my applet.

Download file lite.zip (10 Kbyte) and unpack it. Put file LiteClockApp.class in your HTML directory. Put text into your page:

<APPLET CODE="LiteClockApp.class" WIDTH=300 HEIGHT=150>
Your browser does not supprot Java or Java is not enable.
</APPLET>

and you will see my clock applet on your page!

You can change HEIGHT and WIDTH as you want, but not less than 50. 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 files in /~ivan_mcg/classes/. I have to use next code:

<APPLET CODE="LiteClockApp" WIDTH=200 HEIGHT=200 CODEBASE=/~ivan_mcg/classes>
Your browser does not supprot Java or Java is not enable.
</APPLET>

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

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

Parameters available:

FORE
This optional parameter lets you change color of text. ParamValue must be color in one of two formats: as hexadecimal number (#RRGGBB) or list of 3 decimal numbers, delimited by spaces, commas or semicolons (for example, '255, 128;;;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).
SHAD
This optional parameter lets you change color of digit's shade zones. ParamValue must be color in one of two formats (see about FORE parameter).
MODE
This optional parameter lets you change style of digits. This is a number: '0' - straight digits (default), '1' - italic, and '2' and '3' - broken.
COUNTMODE
If this parameter is set to "1", time over your page will turn back... This idea is by Vladimir Kaluga.
TRANS
Transition mode. Two-digit number: "TM". "T" is transition algorithm - "0" is exponential, "1" is linear algorithm. "M" is color model used in transition. "0" is RGB, "1" is HSB model (it's like a rainbow).

"10" is boring combination. "00" (default) and "01" are most interesting.

Examples

<APPLET CODE="LiteClockApp.class" WIDTH=300 HEIGHT=150>
<PARAM NAME=MODE VALUE=2>
Your browser does not supprot Java or Java is not enable.
</APPLET>
Your browser does not supprot Java or Java is not enable. You can't see my applet.
<APPLET CODE="LiteClockApp" WIDTH=300 HEIGHT=150>
<PARAM NAME=MODE VALUE=1> <PARAM NAME=COUNTMODE VALUE=1> <PARAM NAME=BACK VALUE=#000080> <PARAM NAME=FORE VALUE=#808080> <PARAM NAME=HIGH VALUE=#FFFFFF> <PARAM NAME=LOW VALUE=#000000> <PARAM NAME=TRANS VALUE=01> Your browser does not supprot Java or Java is not enable.
</APPLET>
Your browser does not supprot Java or Java is not enable. You can't see my applet.

Read more about <Applet> tag.

Get source text

There was visitors since 5th of February, 1999.


Ivan "MCG" Boldyrev,

bii714@cclib.nsu.ru
ICQ:22535409

© Ivan 'MCG' Boldyrev, 1999.



Nedstat Counter