A Clock with Temperature (1.1)


alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason." Your browser is completely ignoring the <APPLET> tag!

The clock applet now has four parameters; the background color (bgcolor), the main foreground color (the hands and dial) (fgcolor1), the secondary foreground color (the seconds hand and numbers) (fgcolor2), and the URL which returns the current temperature. The first three parameters are hexadecimal RGB numbers (like the ones used for the body bgcolor tag in HTML). For example:

<applet code="clock" width=170 height=150>
<param name=bgcolor value="000000">
<param name=fgcolor1 value="ff0000">
<param name=fgcolor2 value="ff00ff">
<param name=url value="temp.htm"> </applet>

would give you a black background, a red dial and hands, and purple numbers.

For those who don't convert to hexadecimal easily, here are some common values: