RE: Celcius to Farenheight and vice versa

From: wOb (wOb@chez.com)
Date: Tue Apr 21 1998 - 00:43:52 PDT


Date: Tue, 21 Apr 1998 09:43:52 +0200
From: wOb <wOb@chez.com>
To: cp@opus.hpl.hp.com
Message-Id: <aabcdefg1327$foo@default>
Subject: RE: Celcius to Farenheight and vice versa

a few moonths ago, someone (whose name I don't remember, I apologize
for that) posted a small piece of HTML/Javascript code which converts
Celcius to Farenheigt and vice versa, as he distributed it freely,
I have included it in this message.
I wish he had included credits in the code, but unfortunately, he
did not.

--- CUT HERE ---
<HTML>
<HEAD>
<TITLE>Convert Fahrenheid to/from Celcius</TITLE>

<SCRIPT LANGUAGE="JavaScript">
        function DegreesF2C(F, C) {
                C.value = (parseInt(F,10) - 32) / 1.8;
        }

        function DegreesC2F(C, F) {
                F.value = (parseInt(C, 10) * 1.8) + 32;
        }
</SCRIPT>
</HEAD>

<BODY>
<H1>Convert &#176; Fahrenheid to and from &#176; Celcius.</H1>
<FORM>
        <TABLE>
                <TH ALIGN="left">Enter the temperature in &#176;
Fahrenheid : <TD>
                <INPUT TYPE="text" NAME="F" SIZE=5><TD>
                &#176; F<TD>
                <INPUT TYPE="button" VALUE="Convert F to C"
ONCLICK="DegreesF2C(this.form.F.value, this.form.F2C)"><TD>
                <INPUT TYPE="text" NAME="F2C" SIZE=5><TD>
                &#176; C<TR>

                <TH ALIGN="left">Enter the temperature in &#176; Celcius
: <TD>
                <INPUT TYPE="text" NAME="C" SIZE=5><TD>
                &#176; C<TD>
                <INPUT TYPE="button" VALUE="Convert C to F"
ONCLICK="DegreesC2F(this.form.C.value, this.form.C2F)"><TD>
                <INPUT TYPE="text" NAME="C2F" SIZE=5><TD>
                &#176; F<TR>

                <TH> <TR>

                <TH><TD>
                <INPUT TYPE="reset" VALUE="Clear"><TD>
                <TR>
        </TABLE>

</FORM>
</BODY>
</HTML>

--- CUT HERE ---

Sorry for this long message,
happy growing to all.

--------------------------------------------------------------------
Cyril 'wOb' Fournillon
Drop me a message: wOb@chez.com
                   wOb@mail.dotcom.fr
                   fournill@capway.com
Visit my HomePage: http://www.capway.com/fournill
[Voice: +33 1 42 21 78 03] [Fax: +33 1 42 21 76 88] [ICQ: 1397712]
--------------------------------------------------------------------
Hi! I'm a .signature virus (mutant version), copy me to
your .signature file to join in.



This archive was generated by hypermail 2b30 : Tue Jan 02 2001 - 17:31:31 PST