deedee
07-28-2003, 05:50 PM
Hi
Below i have posted u what i have created so far which isnt much other than a layout design.. The user can come to this page and enter how many cd's per month they purchase and then it will display in three seperate fields how much its costing them per year, per 5 years, per 10 years. The basic calculations are;
(input) * 13.99 * 12
(input) * 13.99 * 60
(input) * 13.99 * 120
13.99 is the national average cost per CD (so says a media magazine)
I am sure that i have to use javascript to make the calculations but i am not sure of anything else. Any pointers or even tutorials or sites of interest around the net would be appericated. As i would like to know more about this subject to help others.
<td colspan="5" valign="top" bgcolor="#CCCCCC"><div align="center"><strong>CD Cost Calculator</strong></div>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td colspan="5" valign="top" bgcolor="#FFFFCC"><div align="center"><font size="2">How Many CD's Do You Purchase Each Month (Average)<br>
</font>
<form name="CD Calc" method="post" action=""><font size="2">
<input name="CD" type="text" size="4" maxlength="4">
</font> </form>
</div>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td valign="top" bgcolor="#FFFFCC"><!--DWLayoutEmptyCell--> </td>
<td valign="top" bgcolor="#FFFFCC"><div align="center"><font size="2"><strong>Yearly</strong></font></div>
</td>
<td valign="top" bgcolor="#FFFFCC"> <div align="center"><font size="2"><strong>5 Years</strong></font></div>
</td>
<td valign="top" bgcolor="#FFFFCC"><div align="center"><font size="2"><strong>10 Years</strong></font></div>
</td>
<td valign="top" bgcolor="#FFFFCC"><!--DWLayoutEmptyCell--> </td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td colspan="5" valign="top" bgcolor="#FFFFCC"><form name="Result" method="post" action="">
<div align="center">
<input type="text" name="Yearly">
<input type="text" name="5 Years">
<input type="text" name="10 Years">
</div>
</form>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td colspan="5" valign="top" bgcolor="#CCCCCC"><div align="center"><font size="2">* National Average Compact
Disc Costs = 13.99</font></div>
</td>
With Thanks
Dee
Below i have posted u what i have created so far which isnt much other than a layout design.. The user can come to this page and enter how many cd's per month they purchase and then it will display in three seperate fields how much its costing them per year, per 5 years, per 10 years. The basic calculations are;
(input) * 13.99 * 12
(input) * 13.99 * 60
(input) * 13.99 * 120
13.99 is the national average cost per CD (so says a media magazine)
I am sure that i have to use javascript to make the calculations but i am not sure of anything else. Any pointers or even tutorials or sites of interest around the net would be appericated. As i would like to know more about this subject to help others.
<td colspan="5" valign="top" bgcolor="#CCCCCC"><div align="center"><strong>CD Cost Calculator</strong></div>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td colspan="5" valign="top" bgcolor="#FFFFCC"><div align="center"><font size="2">How Many CD's Do You Purchase Each Month (Average)<br>
</font>
<form name="CD Calc" method="post" action=""><font size="2">
<input name="CD" type="text" size="4" maxlength="4">
</font> </form>
</div>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td valign="top" bgcolor="#FFFFCC"><!--DWLayoutEmptyCell--> </td>
<td valign="top" bgcolor="#FFFFCC"><div align="center"><font size="2"><strong>Yearly</strong></font></div>
</td>
<td valign="top" bgcolor="#FFFFCC"> <div align="center"><font size="2"><strong>5 Years</strong></font></div>
</td>
<td valign="top" bgcolor="#FFFFCC"><div align="center"><font size="2"><strong>10 Years</strong></font></div>
</td>
<td valign="top" bgcolor="#FFFFCC"><!--DWLayoutEmptyCell--> </td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td colspan="5" valign="top" bgcolor="#FFFFCC"><form name="Result" method="post" action="">
<div align="center">
<input type="text" name="Yearly">
<input type="text" name="5 Years">
<input type="text" name="10 Years">
</div>
</form>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td colspan="5" valign="top" bgcolor="#CCCCCC"><div align="center"><font size="2">* National Average Compact
Disc Costs = 13.99</font></div>
</td>
With Thanks
Dee