topical media & game development

talk show tell print

lib-js-math-calculator-radians.htm / htm



  
  <!-- TWO STEPS TO INSTALL DEGREES TO RADIANS:
  
     1.  Paste the specified coding into the HEAD of your HTML document
     2.  Put the last code into the BODY of your HTML document  -->
  
  <!-- STEP ONE: Copy this code into the HEAD of your HTML document  -->
                    
  <HEAD>
  
  <SCRIPT LANGUAGE="JavaScript">
  <!-- Original:  Sam Tyler (sykicphyst@aol.com) -->
  <!-- Web Site:  http://members.aol.com/sykicphyst/hell/hellhouse.html -->
  
  <!-- This script and many more are available free online at -->
  <!-- The JavaScript Source!! http://javascript.internet.com -->
  
  <!-- Begin
  function ra_de() {
  var pi = Math.PI;
  var ra_de = ((eval(document.forms[0].RADE.value))*(180/pi));
  document.forms[0].RADE.value = ra_de;
  }
  function de_ra() {
  var pi = Math.PI;
  var de_ra = ((eval(document.forms[0].RADE.value))*(pi/180));
  document.forms[0].RADE.value = de_ra;
  }
  function resetRADE() {
  document.forms[0].RADE.value="0";
  }
  // End -->
  </SCRIPT>
  
  <!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
  
  <BODY>
  
  <CENTER>
  <FORM>
  <INPUT TYPE=Button VALUE="Radians to Degrees" onClick="ra_de()"><INPUT TYPE=Button VALUE="Degrees to Radians" onClick="de_ra()"><br>
  <INPUT NAME="RADE" TYPE="Text" VALUE="0" SIZE=25></FORM>
  </BODY>
  </CENTER>
  
  <p><center>
  <font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
  by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
  </center><p>
  
  <!-- Script Size:  1.26 KB  -->
  
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.