Cut & Paste MPS to MPH converter
|
Description: This script makes it easy to calculate how fast something goes "miles per hour", by allowing you to enter its speed using the more manageable "meters per second." Now, let's see how fast my rusty remote-controlled car travels!
Example:
Directions: Simply insert the below into the <body> section of your page:
//MPS to MPH converter script //Visit http://javascriptkit.com for this script //calculate function function calc(){ //variables var meterspersecond = document.converter.mps.value var calculated = Math.round(meterspersecond * 3600 / 1610.3*1000)/1000 //write in text box document.converter.mph.value=calculated }This free script provided by
JavaScript Kit
CSS Library | JavaScript & DHTML Menus
JavaScript Tools:
Site Info