
More JavaScript Calculators
5 Function | Ad Calculator | Adjusted Cost Base | Advanced | Age Calculator | Airport Distance | Armor | Atmosphere | Blood Alcohol Content | Basic | Beat Counter | Best Price | Binary Converter | Body Mass Index | Bubble Sort | Simple Calculator | Calories Burned | Circle Solver | Compound Interest | Cosine | Date Difference | Day Of Week | Distance Speed Time | Dog Years | Driving Distance | Expression Solver | Factors | Fibonacci Sequence | Field Depth | Function Grapher | GPA | Graphing Function | Group Work | Horsepower | Income | Interest Rate | Kinetic Energy | Lap Time | Lcm And Gcd | Leap Year | Male Body | Miles Per Gallon | Money Counter | Parabola Grapher | Paycheck | Percent | Percent Of Increase | Periodic Table | Phone Text | Phone Bill | Polygon | Pregnancy | Prime Number | Pythagorean | Quadratic Solver | Quadratic | Radioactive | Random Distribution | Room Size | Running | Savings Estimator | Scientific | Sine | Square Root | Stock | Straight Distance | Tangent | Tax | Top Speed Rpm | Wavelength | Win Calculator | Wind Chill | World Population | Simple Multiplication
Description
Calculate the time, distance, or speed given any two of the pieces of information....View A Script Demo
Calculate the time, distance, or speed given any two of the pieces of information....View A Script Demo
Do you find it confusing setting up these script?
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="TextPad 4.4">
<LINK href="general.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Gary Nicholson (nicholsongary@hotmail.com) -->
<!-- Web Site: http://homepages.ihug.co.nz/~gazzanic/ -->
<!-- Begin
function calculatetime(form) {
// get conversion factors from selected options
var i = form.distunits.selectedIndex;
var distunitsvalue = form.distunits.options[i].value;
var j = form.speedunits.selectedIndex;
var speedunitsvalue = form.speedunits.options[j].value;
// calculate time in seconds
form.secondvalue.value = (form.distvalue.value * distunitsvalue) / (form.speedvalue.value * speedunitsvalue);
// convert to hours, minutes, seconds
form.hourvalue.value = parseInt(form.secondvalue.value / 3600);
form.secondvalue.value = form.secondvalue.value - (form.hourvalue.value * 3600);
form.minutevalue.value = parseInt(form.secondvalue.value / 60);
form.secondvalue.value = parseInt(form.secondvalue.value - (form.minutevalue.value * 60));
return true;
}
function calculatedistance(form) {
// get conversion factors from selected options
var i = form.distunits.selectedIndex;
var distunitsvalue = form.distunits.options[i].value;
var j = form.speedunits.selectedIndex;
var speedunitsvalue = form.speedunits.options[j].value;
// convert time to seconds
var temp = ((parseFloat(form.hourvalue.value) * 3600) + (parseFloat(form.minutevalue.value) * 60) + parseFloat(form.secondvalue.value));
// calculated distance
form.distvalue.value = ((form.speedvalue.value * speedunitsvalue) * temp) / distunitsvalue;
return true;
}
function calculatespeed(form) {
// get conversion factors from selected options
var i = form.distunits.selectedIndex;
var distunitsvalue = form.distunits.options[i].value;
var j = form.speedunits.selectedIndex;
var speedunitsvalue = form.speedunits.options[j].value;
// convert time to seconds
var temp = ((parseFloat(form.hourvalue.value) * 3600) + (parseFloat(form.minutevalue.value) * 60) + parseFloat(form.secondvalue.value));
// calculate speed
form.speedvalue.value = ((form.distvalue.value * distunitsvalue) / (temp * speedunitsvalue));
return true;
}
function clearcell(cell) {
cell.value = "";
return true;
}
// End -->
</script>
</HEAD>
<BODY Background=../graphics/grayback.jpg>
<center><BR><BR><BR>
<h4>Time from Distance and Speed</h4>
<form>
<table>
<tr>
<td>Enter distance value and unit:</td>
<td><input type=text name=distvalue size=15 value="1" onfocus="clearcell(distvalue)"></td>
<td><select name=distunits>
<option value=1>Metres
<option value=0.001>Millimetres
<option value=0.01>Centimetres
<option value=1000>Kilometres
<option value=0.0254>Inches
<option value=0.3048>Feet
<option value=0.9144>Yards
<option value=1.8288>Fathoms
<option value=1609.344>Statute Miles
<option value=1852>Nautical Miles
<option value=9460000000000000>Light Year
</select>
</td>
</tr>
<tr>
<td>Enter speed value and units:</td>
<td><input type=text name=speedvalue size=15 value="1" onfocus="clearcell(speedvalue)"></td>
<td><select name=speedunits>
<option value=1>Metres per Second
<option value=0.277777777777777777777777777777777777>Kilometre per Hour
<option value=0.3048>Feet per Second
<option value=0.00508>Feet per Minute
<option value=0.01524>Yard per Minute
<option value=0.44704>Statute Mile per Hour
<option value=0.514444444444>Knot
</select></td>
</tr>
</table>
<table>
<tr>
<td>Time is:</td>
<td><input type=text name=hourvalue size=5 value="" readonly></td>
<td>Hours</td>
<td><input type=text name=minutevalue size=5 value="" readonly></td>
<td>Minutes</td>
<td><input type=text name=secondvalue size=5 value="" readonly></td>
<td>Seconds</td>
</tr>
</table>
<input type=button value="Calculate" onClick='calculatetime(this.form)'>
</form>
<hr>
<h4>Distance from Speed and Time</h4>
<form>
<table>
<tr>
<td>Enter speed value and units:</td>
<td><input type=text name=speedvalue size=15 value="1" onfocus="clearcell(speedvalue)"></td>
<td><select name=speedunits>
<option value=1>Metres per Second
<option value=0.277777777777777777777777777777777777>Kilometre per Hour
<option value=0.3048>Feet per Second
<option value=0.00508>Feet per Minute
<option value=0.01524>Yard per Minute
<option value=0.44704>Statute Mile per Hour
<option value=0.514444444444>Knot
</select></td>
</tr>
</table>
<table>
<tr>
<td>Enter time:</td>
<td><input type=text name=hourvalue size=5 value="0" onfocus="clearcell(hourvalue)"></td>
<td>Hours</td>
<td><input type=text name=minutevalue size=5 value="0" onfocus="clearcell(minutevalue)"></td>
<td>Minutes</td>
<td><input type=text name=secondvalue size=5 value="0" onfocus="clearcell(secondvalue)"></td>
<td>Seconds</td>
</tr>
</table>
<table>
<tr>
<td>Distance is (select unit before calculating):</td>
<td><input type=text name=distvalue size=15 value="" readonly></td>
<td><select name=distunits>
<option value=1>Metres
<option value=0.001>Millimetres
<option value=0.01>Centimetres
<option value=1000>Kilometres
<option value=0.0254>Inches
<option value=0.3048>Feet
<option value=0.9144>Yards
<option value=1.8288>Fathoms
<option value=1609.344>Statute Miles
<option value=1852>Nautical Miles
<option value=9460000000000000>Light Year
</select>
</td>
</tr>
</table>
<input type=button value="Calculate" onClick="calculatedistance(this.form)">
</form>
<hr>
<h4>Speed from Distance and Time</h4>
<form>
<table>
<tr>
<td>Enter distance value and unit:</td>
<td><input type=text name=distvalue size=15 value="1" onfocus="clearcell(distvalue)"></td>
<td><select name=distunits>
<option value=1>Metres
<option value=0.001>Millimetres
<option value=0.01>Centimetres
<option value=1000>Kilometres
<option value=0.0254>Inches
<option value=0.3048>Feet
<option value=0.9144>Yards
<option value=1.8288>Fathoms
<option value=1609.344>Statute Miles
<option value=1852>Nautical Miles
<option value=9460000000000000>Light Year
</select>
</td>
</tr>
</table>
<table>
<tr>
<td>Enter time:</td>
<td><input type=text name=hourvalue size=5 value="0" onfocus="clearcell(hourvalue)"></td>
<td>Hours</td>
<td><input type=text name=minutevalue size=5 value="0" onfocus="clearcell(minutevalue)"></td>
<td>Minutes</td>
<td><input type=text name=secondvalue size=5 value="0" onfocus="clearcell(secondvalue)"></td>
<td>Seconds</td>
</tr>
</table>
<table>
<tr>
<td>Speed is (select units before calculating):</td>
<td><input type=text name=speedvalue size=15 value="1" readonly></td>
<td><select name=speedunits>
<option value=1>Metres per Second
<option value=0.277777777777777777777777777777777777>Kilometre per Hour
<option value=0.3048>Feet per Second
<option value=0.00508>Feet per Minute
<option value=0.01524>Yard per Minute
<option value=0.44704>Statute Mile per Hour
<option value=0.514444444444>Knot
</select></td>
</tr>
</table>
<input type=button value="Calculate" onClick="calculatespeed(this.form)">
</form>
</center>
</BODY>
</HTML>
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="TextPad 4.4">
<LINK href="general.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Gary Nicholson (nicholsongary@hotmail.com) -->
<!-- Web Site: http://homepages.ihug.co.nz/~gazzanic/ -->
<!-- Begin
function calculatetime(form) {
// get conversion factors from selected options
var i = form.distunits.selectedIndex;
var distunitsvalue = form.distunits.options[i].value;
var j = form.speedunits.selectedIndex;
var speedunitsvalue = form.speedunits.options[j].value;
// calculate time in seconds
form.secondvalue.value = (form.distvalue.value * distunitsvalue) / (form.speedvalue.value * speedunitsvalue);
// convert to hours, minutes, seconds
form.hourvalue.value = parseInt(form.secondvalue.value / 3600);
form.secondvalue.value = form.secondvalue.value - (form.hourvalue.value * 3600);
form.minutevalue.value = parseInt(form.secondvalue.value / 60);
form.secondvalue.value = parseInt(form.secondvalue.value - (form.minutevalue.value * 60));
return true;
}
function calculatedistance(form) {
// get conversion factors from selected options
var i = form.distunits.selectedIndex;
var distunitsvalue = form.distunits.options[i].value;
var j = form.speedunits.selectedIndex;
var speedunitsvalue = form.speedunits.options[j].value;
// convert time to seconds
var temp = ((parseFloat(form.hourvalue.value) * 3600) + (parseFloat(form.minutevalue.value) * 60) + parseFloat(form.secondvalue.value));
// calculated distance
form.distvalue.value = ((form.speedvalue.value * speedunitsvalue) * temp) / distunitsvalue;
return true;
}
function calculatespeed(form) {
// get conversion factors from selected options
var i = form.distunits.selectedIndex;
var distunitsvalue = form.distunits.options[i].value;
var j = form.speedunits.selectedIndex;
var speedunitsvalue = form.speedunits.options[j].value;
// convert time to seconds
var temp = ((parseFloat(form.hourvalue.value) * 3600) + (parseFloat(form.minutevalue.value) * 60) + parseFloat(form.secondvalue.value));
// calculate speed
form.speedvalue.value = ((form.distvalue.value * distunitsvalue) / (temp * speedunitsvalue));
return true;
}
function clearcell(cell) {
cell.value = "";
return true;
}
// End -->
</script>
</HEAD>
<BODY Background=../graphics/grayback.jpg>
<center><BR><BR><BR>
<h4>Time from Distance and Speed</h4>
<form>
<table>
<tr>
<td>Enter distance value and unit:</td>
<td><input type=text name=distvalue size=15 value="1" onfocus="clearcell(distvalue)"></td>
<td><select name=distunits>
<option value=1>Metres
<option value=0.001>Millimetres
<option value=0.01>Centimetres
<option value=1000>Kilometres
<option value=0.0254>Inches
<option value=0.3048>Feet
<option value=0.9144>Yards
<option value=1.8288>Fathoms
<option value=1609.344>Statute Miles
<option value=1852>Nautical Miles
<option value=9460000000000000>Light Year
</select>
</td>
</tr>
<tr>
<td>Enter speed value and units:</td>
<td><input type=text name=speedvalue size=15 value="1" onfocus="clearcell(speedvalue)"></td>
<td><select name=speedunits>
<option value=1>Metres per Second
<option value=0.277777777777777777777777777777777777>Kilometre per Hour
<option value=0.3048>Feet per Second
<option value=0.00508>Feet per Minute
<option value=0.01524>Yard per Minute
<option value=0.44704>Statute Mile per Hour
<option value=0.514444444444>Knot
</select></td>
</tr>
</table>
<table>
<tr>
<td>Time is:</td>
<td><input type=text name=hourvalue size=5 value="" readonly></td>
<td>Hours</td>
<td><input type=text name=minutevalue size=5 value="" readonly></td>
<td>Minutes</td>
<td><input type=text name=secondvalue size=5 value="" readonly></td>
<td>Seconds</td>
</tr>
</table>
<input type=button value="Calculate" onClick='calculatetime(this.form)'>
</form>
<hr>
<h4>Distance from Speed and Time</h4>
<form>
<table>
<tr>
<td>Enter speed value and units:</td>
<td><input type=text name=speedvalue size=15 value="1" onfocus="clearcell(speedvalue)"></td>
<td><select name=speedunits>
<option value=1>Metres per Second
<option value=0.277777777777777777777777777777777777>Kilometre per Hour
<option value=0.3048>Feet per Second
<option value=0.00508>Feet per Minute
<option value=0.01524>Yard per Minute
<option value=0.44704>Statute Mile per Hour
<option value=0.514444444444>Knot
</select></td>
</tr>
</table>
<table>
<tr>
<td>Enter time:</td>
<td><input type=text name=hourvalue size=5 value="0" onfocus="clearcell(hourvalue)"></td>
<td>Hours</td>
<td><input type=text name=minutevalue size=5 value="0" onfocus="clearcell(minutevalue)"></td>
<td>Minutes</td>
<td><input type=text name=secondvalue size=5 value="0" onfocus="clearcell(secondvalue)"></td>
<td>Seconds</td>
</tr>
</table>
<table>
<tr>
<td>Distance is (select unit before calculating):</td>
<td><input type=text name=distvalue size=15 value="" readonly></td>
<td><select name=distunits>
<option value=1>Metres
<option value=0.001>Millimetres
<option value=0.01>Centimetres
<option value=1000>Kilometres
<option value=0.0254>Inches
<option value=0.3048>Feet
<option value=0.9144>Yards
<option value=1.8288>Fathoms
<option value=1609.344>Statute Miles
<option value=1852>Nautical Miles
<option value=9460000000000000>Light Year
</select>
</td>
</tr>
</table>
<input type=button value="Calculate" onClick="calculatedistance(this.form)">
</form>
<hr>
<h4>Speed from Distance and Time</h4>
<form>
<table>
<tr>
<td>Enter distance value and unit:</td>
<td><input type=text name=distvalue size=15 value="1" onfocus="clearcell(distvalue)"></td>
<td><select name=distunits>
<option value=1>Metres
<option value=0.001>Millimetres
<option value=0.01>Centimetres
<option value=1000>Kilometres
<option value=0.0254>Inches
<option value=0.3048>Feet
<option value=0.9144>Yards
<option value=1.8288>Fathoms
<option value=1609.344>Statute Miles
<option value=1852>Nautical Miles
<option value=9460000000000000>Light Year
</select>
</td>
</tr>
</table>
<table>
<tr>
<td>Enter time:</td>
<td><input type=text name=hourvalue size=5 value="0" onfocus="clearcell(hourvalue)"></td>
<td>Hours</td>
<td><input type=text name=minutevalue size=5 value="0" onfocus="clearcell(minutevalue)"></td>
<td>Minutes</td>
<td><input type=text name=secondvalue size=5 value="0" onfocus="clearcell(secondvalue)"></td>
<td>Seconds</td>
</tr>
</table>
<table>
<tr>
<td>Speed is (select units before calculating):</td>
<td><input type=text name=speedvalue size=15 value="1" readonly></td>
<td><select name=speedunits>
<option value=1>Metres per Second
<option value=0.277777777777777777777777777777777777>Kilometre per Hour
<option value=0.3048>Feet per Second
<option value=0.00508>Feet per Minute
<option value=0.01524>Yard per Minute
<option value=0.44704>Statute Mile per Hour
<option value=0.514444444444>Knot
</select></td>
</tr>
</table>
<input type=button value="Calculate" onClick="calculatespeed(this.form)">
</form>
</center>
</BODY>
</HTML>
If you have a Business Proposal that you think may be of interest to us here at Best Download Sites please contact us to discuss the matter in further detail

