0N/A<HTML>
0N/A <HEAD>
0N/A <TITLE>A Clock (1.6)</TITLE>
0N/A </HEAD>
0N/A <BODY>
0N/A <h1>A Clock (1.6)</h1>
0N/A <hr>
0N/A <applet code="Clock.class" width=170 height=150>
0N/A alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
0N/A Your browser is completely ignoring the &lt;APPLET&gt; tag!
0N/A</applet>
0N/A <p>
0N/A The clock applet now has three parameters; the background
0N/A color (bgcolor), the main foreground color (the hands and
0N/A dial) (fgcolor1) and the secondary foreground color (the
0N/A seconds hand and numbers) (fgcolor2). These three parameters
0N/A are hexadecimal RGB numbers (like the ones used for the body
0N/A bgcolor tag in HTML). For example:
0N/A <p>
0N/A &lt;applet code="Clock.class" width=170 height=150&gt;<br>
0N/A &lt;param name=bgcolor value="000000"&gt;<br>
0N/A &lt;param name=fgcolor1 value="ff0000"&gt;<br>
0N/A &lt;param name=fgcolor2 value="ff00ff"&gt;<br>
0N/A &lt;/applet&gt;<p>
0N/A would give you a black background, a red dial and hands, and purple numbers.
0N/A <p>
0N/A For those who don't convert to hexadecimal easily, here are some common
0N/A values:
0N/A <ul>
0N/A <li>black = 000000
0N/A <li>blue = 0000ff
0N/A <li>cyan = 00ffff
0N/A <li>darkGray = 404040
0N/A <li>gray = 808080
0N/A <li>green = 00ff00
0N/A <li>lightGray = c0c0c0
0N/A <li>magenta = ff00ff
0N/A <li>orange = ffc800
0N/A <li>pink = ffafaf
0N/A <li>red = ff0000
0N/A <li>white = ffffff
0N/A <li>yellow = ffff00
0N/A </ul>
0N/A <hr>
0N/A <a href="Clock.java">The source</a>.
0N/A </BODY>
0N/A</HTML>