<!-- TWO STEPS TO INSTALL TAX CALCULATOR: 1. Paste the 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 --><SCRIPT LANGUAGE="JavaScript"> <!-- Original: Tim Wallace <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function fmtPrice(value) { result="$"+Math.floor(value)+"."; var cents=100*(value-Math.floor(value))+0.5; result += Math.floor(cents/10); result += Math.floor(cents%10); return result; } function compute() { var unformatted_tax = (document.forms[0].cost.value)*(document.forms[0].tax.value); document.forms[0].unformatted_tax.value=unformatted_tax; var formatted_tax = fmtPrice(unformatted_tax); document.forms[0].formatted_tax.value=formatted_tax; var cost3= eval( document.forms[0].cost.value ); cost3 += eval( (document.forms[0].cost.value)*(document.forms[0].tax.value) ); var total_cost = fmtPrice(cost3); document.forms[0].total_cost.value=total_cost; } function resetIt() { document.forms[0].cost.value="19.95"; document.forms[0].tax.value=".06"; document.forms[0].unformatted_tax.value=""; document.forms[0].formatted_tax.value=""; document.forms[0].total_cost.value=""; } // End --> </SCRIPT><!-- Put this code into the BODY of your HTML document --><center> <form> TAKSİTE HESAPLAMA <table cellpadding="3" width="300" border="2"> <tbody> <tr> <td align="center"><font size="+1"><strong>Cost</strong></font></td> <td align="center"><font size="+1"><strong>Tax</strong></font></td> </tr> <tr> <td align="center"><input size="10" name="cost" value="19.95" type="text" /></td> <td align="center"><input size="10" name="tax" value=".06" type="text" /></td> </tr> </tbody> </table> <br /> <table style="width: 521px; height: 69px" cellpadding="3" width="521" border="1"> <tbody> <tr> <td align="center"><font size="+1"><strong>Unformatted Tax</strong></font></td> <td align="center"><font size="+1"><strong>Formatted Tax</strong></font></td> <td align="center"><font size="+1"><strong>TOTAL COST</strong></font></td> </tr> <tr> <td align="center"><input size="15" name="unformatted_tax" type="text" /></td> <td align="center"><input size="15" name="formatted_tax" type="text" /></td> <td align="center"><input size="15" name="total_cost" type="text" /></td> </tr> </tbody> </table> <br /> <table cellpadding="5" width="400" border="0"> <tbody> <tr> <td align="center"><input type="reset" onClick="resetIt()" value="RESET" /></td> <td align="center"><input type="button" onclick="compute()" value="COMPUTE" /></td> </tr> </tbody> </table> </form> </center> <p> </p> <center><a href="http://www.tr-web.com">www.htmleditorx.tr.gg</a></center> <p><!-- Script Size: 2.55 KB --></p>
MANGA
GRUP 4 YÜZ
GRUP HEPSİ FAN
SİTENE EKLE