metric conversion




JavaScript Source Code 3000: Equivalents: Metric Conversion








































Metric Conversion







Converts a height value between inches and cetimeters, and converts a weight value between pounds and kilograms. Easy!









Height: (in. or cm.)



Inches:



Centimeters:








Weight: (lbs. or kg.)



Pounds:



KG:



Click out of the box to calculate)






JavaScript Source Code 3000: Equivalents: Metric Conversion
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!








<!-- TWO STEPS TO INSTALL METRIC CONVERSION:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Nannette Thacker (nannette@shiningstar.net) -->
<!-- Web Site: http://www.shiningstarsingles.com -->

<! >
<! >

<!-- Begin
function convertInchCent(height, inches, centimeters) {
centimeters.value = height.value * 2.54;
inches.value = height.value / 2.54;
}
function convertLbsKg(weight,lbs,kg) {
kg.value = weight.value * 0.45359;
lbs.value = weight.value / 0.45359;
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<center>
<form>
<table border=0>
<tr>
<td>
Height: <font size=-1>(in. or cm.)</font></td>
<td><input name=cvHeight type=text size=4 value=""
onChange="convertInchCent(this.form.cvHeight, this.form.inches, this.form.centimeters);"
onBlur="convertInchCent(this.form.cvHeight, this.form.inches, this.form.centimeters);"></td>
</tr>
<tr>
<td>Inches:</td>
<td><input type=text name=inches size=4 readonly></td>
</tr>
<tr>
<td>Centimeters:</td>
<td><input type=text name=centimeters size=4 readonly></td>
</tr>
<tr>
<td colspan=2>
<hr width="100%" size=1 noshade>
</td>
</tr>
<tr>
<td>Weight: <font size=-1>(lbs. or kg.)</font></td>
<td><input type=text name=cvWeight size=4 value="" onChange="convertLbsKg(this.form.cvWeight, this.form.pounds, this.form.kgs);"></td>
</tr>
<tr>
<td>Pounds:</td>
<td><input type=text name=pounds size=4 readonly></td>
</tr>
<tr>
<td>KG:</td>
<td><input type=text name=kgs size=4 readonly></td>
</tr>
</table>
<font size=-2>Click out of the box to calculate)</font>
</form>
</center>



<!-- Script Size: 1.97 KB -->










Wyszukiwarka

Podobne podstrony:
Metric And Imperial Conversions
grice opracowaniE Cooperative Principle, Maxims of Conversation
PS4 ZB4 501 UM3 UM4 Interface Converter h1371g
Laszlo, Ervin The Convergence of Science and Spirituality (2005)
CHRYSLER LEBARON CONVERT COUPE 1990
dvd do divx divx converter
Mazatrol Fusion Conversational Programming Class for 640MT & MT Pro For Integrex Outline
Super kalkulator konwerter CONVERT
Active DWG DXF Converter
Conversion
option convert fonts to spans
convert06
G21 Metric Programming
07 The Dangling Conversation
The Convertible Coven Susan Wade
Stallabrass Conversation

więcej podobnych podstron