3 <TITLE>A Clock (
1.6)
</TITLE>
8 <applet code=
"Clock.class" width=
170 height=
150>
9 alt=
"Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
10 Your browser is completely ignoring the
<APPLET
> tag!
13 The clock applet now has three parameters; the background
14 color (bgcolor), the main foreground color (the hands and
15 dial) (fgcolor1) and the secondary foreground color (the
16 seconds hand and numbers) (fgcolor2). These three parameters
17 are hexadecimal RGB numbers (like the ones used for the body
18 bgcolor tag in HTML). For example:
20 <applet
code=
"Clock.class" width=
170 height=
150><br>
21 <param name=bgcolor
value=
"000000"><br>
22 <param name=fgcolor1
value=
"ff0000"><br>
23 <param name=fgcolor2
value=
"ff00ff"><br>
25 would give you a black background, a red dial and hands, and purple numbers.
27 For those who don't convert to hexadecimal easily, here are some common
36 <li>lightGray = c0c0c0
45 <a href=
"Clock.java">The source
</a>.