Phiên bản đầy đủ: jsB@nk » Tính toán » Tương đương » Đổi đơn vị gia tốc
URL: https://www.javascriptbank.com/acceleration-equivalents.html
Hiệu ứng tạo một bảng chứa các đơn vị gia tốc khác nhau để người dùng có thể đổi một đơn vị gia tốc nào đó.
Phiên bản đầy đủ: jsB@nk » Tính toán » Tương đương » Đổi đơn vị gia tốc
URL: https://www.javascriptbank.com/acceleration-equivalents.html
<SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction initArray() {this.length = initArray.arguments.length;for (var i = 0; i < this.length; i++) {this[i] = initArray.arguments[i]; }}var isn08 = new initArray("4b","5b","8b","8b");isn08[0] ="~01~10.01~236~30.036~4118.11~50.03281~6118.11~70.02237~80.01944~9";isn08[1] = "~0100~11~23600~33.6~411811~53.281~611811~72.237~81.944~9";isn08[2] ="~00.02778~10.0002778~21~30.001~43.281~50.0009113~63.281~70.0006214~80.00054~9";isn08[3] ="~027.78~10.2778~21000~31~43281~50.9113~63281~70.6214~80.54~9";isn08[4] ="~00.008467~10.00008467~20.3048~30.0003048~41~50.0002778~61~70.0001894~80.0001646~9";isn08[5] ="~030.48~10.3048~21097~31.097~43600~51~63600~70.6818~80.4572~9";isn08[6] ="~00.008467~10.00008467~20.3048~30.0003048~41~50.0002778~61~70.0001894~80.0001646~9";isn08[7] ="~044.7~10.447~21609~31.609~45280~51.467~65280~71~80.8690~9";isn08[8] ="~051.44~10.5144~21852~31.852~46076~51.688~66076~71.151~81~9";function accCon() {for (var i = 0; i < 9; i++) {if (document.isnform08.acci[i].checked) {acci = i;accinm = document.isnform08.acci[i].value; }}for (var i = 0; i < 9; i++) {if (document.isnform08.acco[i].checked) {acco = i;acconm = document.isnform08.acco[i].value; }}useri = document.isnform08.accinp.value;if (useri == 0) {useri = 1;document.isnform08.accinp.value = useri;}mulstr = isn08[acci];picker = "~" + acco;ps = mulstr.indexOf(picker);acco++;picker = "~" + acco;ps1 = mulstr.indexOf(picker);mulstr = mulstr.substring((ps + 2),ps1);ps = (useri * mulstr);picker = "";picker += psps1 = picker.indexOf(".");if (ps1 > -1) {ps = ps + .000001;picker = "";picker += ps;ps2 = picker.indexOf("e");if (ps2 < 0) {picker = picker.substring(0,(ps1 + 6));}if (ps2 == 0 || ps2 > 0) {ps3 = picker.indexOf("00000");if (ps3 > 0) {picker = picker.substring(0,ps3 + 1) +picker.substring(ps2,picker.length); } }}picker = useri + " " + accinm + " = " + picker + " " + acconmdocument.isnform08.accout.value = picker;}// End --></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<FORM NAME="isnform08"><TABLE BORDER=1 WIDTH=486><TR><TD COLSPAN=10 VALIGN=TOP><FONT style="font-size: 11pt"><B>First, type the number you wish converted here:</B><INPUT TYPE="text" NAME="accinp" SIZE=30 VALUE=""onChange="accCon();"></FONT><FONT style="font-size: 11pt"><BR></FONT><B> <FONT style="font-size: 11pt">Then, click radio buttons for desired conversion:</FONT></TD></TR><TR><TD ALIGN=CENTER><FONT COLOR="red" style="font-size: 11pt"><B>From:</B></FONT></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">cm/sec/sec<BR><INPUT TYPE="radio" NAME="acci" VALUE="cm/sec/sec" CHECKED onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">m/sec/sec<BR><INPUT TYPE="radio" NAME="acci" VALUE="m/sec/sec" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">m/hr/sec<BR><INPUT TYPE="radio" NAME="acci" VALUE="m/hr/sec" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">km/hr/sec<BR><INPUT TYPE="radio" NAME="acci" VALUE="km/hr/sec" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">ft/hr/sec<BR><INPUT TYPE="radio" NAME="acci" VALUE="ft/hr/sec" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">ft/sec/sec<BR><INPUT TYPE="radio" NAME="acci" VALUE="ft/sec/sec" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">ft/min/min<BR><INPUT TYPE="radio" NAME="acci" VALUE="ft/min/min" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">mi/hr/sec<BR><INPUT TYPE="radio" NAME="acci" VALUE="mi/hr/sec" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">knots/sec<BR><INPUT TYPE="radio" NAME="acci" VALUE="knots/sec" onClick =""></TD></TR><TR><TD ALIGN=CENTER><FONT COLOR="red" style="font-size: 11pt"><B>To:</B></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">cm/sec/sec<BR><INPUT TYPE="radio" NAME="acco" VALUE="cm/sec/sec" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">m/sec/sec<BR><INPUT TYPE="radio" NAME="acco" VALUE="m/sec/sec" CHECKED onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">m/hr/sec<BR><INPUT TYPE="radio" NAME="acco" VALUE="m/hr/sec" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">km/hr/sec<BR><INPUT TYPE="radio" NAME="acco" VALUE="km/hr/sec" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">ft/hr/sec<BR><INPUT TYPE="radio" NAME="acco" VALUE="ft/hr/sec" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">ft/sec/sec<BR><INPUT TYPE="radio" NAME="acco" VALUE="ft/sec/sec" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">ft/min/min<BR><INPUT TYPE="radio" NAME="acco" VALUE="ft/min/min" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">mi/hr/sec<BR><INPUT TYPE="radio" NAME="acco" VALUE="mi/hr/sec" onClick =""></TD><TD ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt">knots/sec<BR><INPUT TYPE="radio" NAME="acco" VALUE="knots/sec" onClick =""></TD></TR><TR><TD COLSPAN=10 ALIGN=CENTER VALIGN=TOP><FONT style="font-size: 11pt"><INPUT TYPE="button" VALUE=" Click for Conversion "onClick="accCon();"></FONT><FONT style="font-size: 11pt"><INPUT TYPE="reset" VALUE=" Reset Values"><BR><INPUT TYPE="text" NAME="accout" SIZE=60 VALUE=""onClick="accCon();"></FONT></TD></TR></TABLE></FORM><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->