Home:Java applets:Big Time 11 example

Applet example: Big Time 11

Java is not supported.

What tags do I use to embed an applet?

The clock applet embedded in this page is called BigTime11. It consists of a single file named BigTime11.class, which must be uploaded to the web server.

Here is the HTML:

<APPLET CODE="BigTime11" WIDTH="120" HEIGHT="36">
  <PARAM NAME="ledcolor" VALUE="green">
  <PARAM NAME="framecolor" VALUE="lightgray">
  <PARAM NAME="backcolor" VALUE="black">
  <PARAM NAME="mode" VALUE="12">
  Java is not supported.
</APPLET>

The text inside the <applet> container is displayed only if the browser is unable to run the applet. HTML tags such as <img> and <table> are allowed.

What are PARAMs?

Some applets are written in such a way as to allow you to set certain parameters such as font, color, etc. This is entirely up to the applet programmer, who determines the names of the parameters and the values they can accept. The BigTime11 applet, for example, allows you to change the clock colors and to choose 12-hour (AM/PM) or 24-hour time mode.

Here’s what the PARAMs do in this case:

ledcolor
Color of the digits
framecolor
Color of the frame around the display
backcolor
Color of the background behind the digits
mode
12-hour or 24-hour mode

The accepted color names are: black, blue, cyan, darkgray, green, lightgray, magenta, red, white, yellow.

Download the BigTime11 applet.

Previous page | Home | Test another applet

Site hosted by Angelfire.com: Build your free website today!