Phiên bản đầy đủ: jsB@nk » Thời gian » Tính tuổi trên các hành tinh
URL: https://www.javascriptbank.com/converting-earth-years-to-planetary-years.html
Nhập vào tuổi của ta ở trái đất, hiệu ứng sẽ cho ta biết tuổi của mình nếu ở trên các hành tinh khác.
Phiên bản đầy đủ: jsB@nk » Thời gian » Tính tuổi trên các hành tinh
URL: https://www.javascriptbank.com/converting-earth-years-to-planetary-years.html
<script language="JavaScript">function planyear (form){form.mercyear1.value = form.year.value*365/88;form.venyear1.value = form.year.value*365/225;form.earyear1.value = form.year.value*365/365;form.maryear1.value = form.year.value*365/687;form.jupyear1.value = form.year.value/11.86;form.satyear1.value = form.year.value/29.46;form.urayear1.value = form.year.value/84;form.nepyear1.value = form.year.value/164.8;form.pluyear1.value = form.year.value/247.7;}</script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<form><p align="center"><font face="Arial"><b>Enter Your age in Earth Years </b> <input type="text" name="year" size="15"></font><br><font face="Arial"><input type="button" value="Click Here to convert to Planetary Years" onclick="planyear(this.form)"></font></p><div align="center"> <center> <table border="0" width="163"> <tbody><tr> <td width="22"><font face="Arial"><b>Mercury</b></font></td> <td width="1"><p><font face="Arial"><input type="text" name="mercyear1" size="7"> </font> </p></td> </tr> <tr> <td width="22"><font face="Arial"><b>Venus</b></font></td> <td width="1"><p><font face="Arial"><input type="text" name="venyear1" size="7"></font> </p></td> </tr> <tr> <td width="22"><font face="Arial"><b>Earth</b></font></td> <td width="1"><p><font face="Arial"><input type="text" name="earyear1" size="7"></font> </p></td> </tr> <tr> <td width="22"><font face="Arial"><b>Mars</b></font></td> <td width="1"><p><font face="Arial"><input type="text" name="maryear1" size="7"></font> </p></td> </tr> <tr> <td width="22"><font face="Arial"><b>Jupiter</b></font></td> <td width="1"><p><font face="Arial"><input type="text" name="jupyear1" size="7"></font> </p></td> </tr> <tr> <td width="22"><font face="Arial"><b>Saturn</b></font></td> <td width="1"><p><font face="Arial"><input type="text" name="satyear1" size="7"> </font> </p></td> </tr> <tr> <td width="22"><font face="Arial"><b>Uranus</b></font></td> <td width="1"><p><font face="Arial"><input type="text" name="urayear1" size="7"></font> </p></td> </tr> <tr> <td width="22"><font face="Arial"><b>Neptune</b></font></td> <td width="1"><p><font face="Arial"><input type="text" name="nepyear1" size="7"></font> </p></td> </tr> <tr> <td width="22"><font face="Arial"><b>Pluto</b></font></td> <td width="1"><p><font face="Arial"><input type="text" name="pluyear1" size="7"></font> </p></td> </tr> <tr> <td width="22"></td> <td width="1"> </td> </tr> </tbody></table> </center></div></form><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->