Multiply/Divide Script


Script Demo:

times =

divided by =


Script Source Code:

<script language=javascript>

/////////////////////////////////////////////////////////////////////
//                                                                 //
//     YOU MAY USE THIS SCRIPT IF YOU LEAVE THIS MESSAGE UP.       //
//                                                                 //
//                 This Script Made By David Christy.              //
//                                                                 //
//                       webresource@usa.net                       //
//               http://www.cyberhighway.net/~jchristy/            //   
//                                                                 //
/////////////////////////////////////////////////////////////////////  

function multiply(form){
form.answer.value = form.one.value * form.two.value;
}

function divide(form){
form.answerd.value = form.oned.value / form.twod.value;
}

</script>

<form>
<input type="text" size="3" name="one" onchange="multiply(this.form)"> 
times 
<input type="text" size="3" name="two" onchange="multiply(this.form)">
= 
<input type="button" value=" ANSWER " name="answer">

<p><input type="text" size="3" name="oned" onchange="divide(this.form)">
divided by
<input type="text" size="3" name="twod" onchange="divide(this.form)"> 
= 
<input type="button" value=" ANSWER " name="answerd">
</form>

Visit The Searcher at http://www.cyberhighway.net/~jchristy/.