|
jem2002 -> RE: Basic calculator needed (12/10/2002 1:03:55 PM)
|
Herb, here is my page that I got to work like a want it!! http://www.swimaqua.org/eAQUA/online_entry_ags.htm The calc portion is near the bottom. I have become somewhat minimally educated about this, so ask any questions, I'll try. Here is code for calculator, which is in a table; note that this table must go between your <form> and </form> tags if you insert it into your form: <table> <tr> <td valign="center" align="center" width="100%" colspan="4" height="21"><b><font face="Arial" size="2">TOTAL ENTRY FEE CALCULATION</font></b></td> </tr> <tr> <td valign="center" align="center" width="100%" colspan="4" height="21"> </td> </tr> <tr> <td valign="center" align="center" width="25%" colspan="1" height="21"> </td> <td valign="center" align="center" width="25%" colspan="1" height="21"><font face="Arial" size="2" color="#000000">Fee per event</font></td> <td valign="center" align="center" width="25%" colspan="1" height="21"><font face="Arial" size="2" color="#000000">Events</font></td> <td valign="center" align="center" width="25%" colspan="1" height="21"><font face="Arial" size="2" color="#000000">Total owed</font></td> </tr> <tr> <td valign="center" align="center" width="25%" colspan="1" height="21"><font face="Arial" size="2" color="#000000">Winter Champs</font></td> <td valign="center" align="center" width="25%" colspan="1" height="21"> <font face="Arial" size="2" color="#000000">$3.75</font> </td> <td valign="center" align="center" width="25%" colspan="1" height="21"> <select size="1" name="no_events" onChange="this.form.totalPrice.value = '$'+(this.options[this.selectedIndex].value*3.75);"> <option selected value="0">0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> </td> <td valign="center" align="center" width="25%" colspan="1" height="21"> <input type="text" name="totalPrice" size="5" value="0" onFocus="this.blur();"> </td> </tr> </table>
|
|
|
|