home *** CD-ROM | disk | FTP | other *** search
- #newformat
- _title:Wind Chill
- _author:James P. Dildine
- _source:http://www.mste.uiuc.edu/dildine
- _description:Calculates the wind chill factor, given wind speed and air temperature.
-
- _insert-in:inhead
- <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
- <!-- Original: James P. Dildine (jpd@wlsmail.com) -->
- <!-- Web Site: http://www.mste.uiuc.edu/dildine -->
-
- <!-- This script and many more are available free online at -->
- <!-- The JavaScript Source!! http://javascript.internet.com -->
-
- <!-- Begin
- function windChill(form) {
- wind=eval(form.wind.value);
- temp=eval(form.temp.value);
- chill=(0.0817*(3.71*(Math.pow(wind, 0.5))+
- 5.81-0.25*wind)*(temp-91.4)+91.4);
- form.windchill.value = chill;
- }
- // End -->
- </SCRIPT>
- _end-insert:
-
- _insert-in:inbody
- <FORM ACTION="" METHOD=POST NAME=windform>
- <CENTER>
- <TABLE BORDER=1 CELLPADDING=3 CELLSPACING=0 WIDTH="250">
- <TR>
- <TD ALIGN=CENTER>
- Wind Speed (MPH) =
- </TD>
- <TD ALIGN=CENTER>
- <INPUT TYPE=TEXT NAME=wind VALUE="" SIZE=6>
- </TD>
- </TR>
- <TR>
- <TD ALIGN=CENTER>
- Air Temperature (ºF) =
- </TD>
- <TD ALIGN=CENTER>
- <INPUT TYPE=TEXT NAME=temp VALUE="" SIZE=6>
- </TD>
- </TR>
- <TR>
- <TD COLSPAN=2 ALIGN=CENTER>
- <BR>
- <INPUT TYPE=BUTTON VALUE="Calculate Wind Chill" onclick="windChill(this.form)">
- <P>
- <INPUT NAME=windchill TYPE=TEXT VALUE="" SIZE=10> ° F
- </TD>
- <TR>
- </TABLE>
- </CENTER>
- </FORM>
- _end-insert: