Script Categories













Calculators >>> Top Speed Rpm.

Enter the diameter of the tire and the RPM value of the motor and the script will tell you the top speed without any weight on the Tires.

Diameter of Tire (in Inches)
RPM Value
Top Speed with no Weight

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function calculate() {
var pi = 3.14159265359;
var radius = document.rpmForm.diameter.value / 2;
var circ = 2 * pi * radius;
var totlength = circ * .00001578;
var totrpm = document.rpmForm.rpm.value * 60;
var total = totrpm * totlength;
document.rpmForm.topSpeed.value = total;
}
//  End -->
</script>
<form name="rpmForm">
<table border=0>
<tr>
<td>
Diameter of Tire (in Inches)
</td>
<td>
<input type=text name=diameter value=18>
</td>
</tr>
<tr>
<td>
RPM Value
</td>
<td>
<input type=text name=rpm value=2000>
</td>
</tr>
<tr>
<td
colspan=2>
<input type=button value="Calculate Top Speed" onClick="calculate()">
</td>
</tr>
<tr>
<td>
Top Speed with no Weight
</td>
<td>
<input type=text name=topSpeed>
</td>
</tr>
</table>
</form>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

Bitcoin Dice Site


©