topical media & game development

talk show tell print

lib-js-math-equation-solver.htm / htm



  
  <!-- Paste this code into the HEAD section of your HTML document.
       You may need to change the path of the file.  -->
  
  <script type="text/javascript" src="equation.js"></script>
  
  <!-- Paste this code into the BODY section of your HTML document  -->
  
  <div align="center">
  <form name="form">
    <input type="text" name="x2Coef" size="2" value="1"><b> X<sup>2</sup> </b>
      <select name="firstSign">
        <option value="+">+</option>
        <option value="-">-</option>
      </select>
    <input typle="text" name="xCoef" size="2" value="1"><b> X</b>
      <select name="secondSign">
        <option value="+">+</option>
        <option value="-">-</option>
      </select> 
    <input type="text" name="endValue" size="2"><br>
    Round to the nearest thousandths?<input type="checkbox" name="round">Yes<br><br>
    <input type="button" value="Solve!" onClick="SolveEq()">
  </form>
  <p id="testing" style="width: 400px; height: 100px; border-width: 2px; border-style: groove; border-color: orange; font-size: 16px; color: blue; vertical-align: center">The Solution Will Appear Here!</p>
  </div>
  <p><div align="center">
  <font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
  by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
  </div><p>
  
  


(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.