Sitene Hesap Makinesi :
HESAP MAKİNASI 1
1.sayi 2.sayi sonuç
www.kod-ekle-net.tr.gg
<html> <head> <title>sablon </title> <script language="javaScript"> function topla(ne){ ne.sonuç.value=parseFloat(ne.say1.value)+parseFloat(ne.say2.value); } function çikar(ne){ ne.sonuç.value=parseFloat(ne.say1.value)-parseFloat(ne.say2.value); } function çarp(ne){ ne.sonuç.value=parseFloat(ne.say1.value)*parseFloat(ne.say2.value); } function böl(ne){ ne.sonuç.value=parseFloat(ne.say1.value)/parseFloat(ne.say2.value); } function ort(ne){ ne.sonuç.value=[parseFloat(ne.say1.value)+parseFloat(ne.say2.value)]/2; } </script> </head> <body> <table border="0" width="207"bgcolor="#669999"><tr><td> <form name="formum"> <p align="center">1.sayi<font color="#669999"><input type="text" name="say1"></font> <br>2.sayi<font color="white"><input type="text" name="say2"> <br></font>sonuç<font color="white"><input type="text" name="sonuç"> </font></p> <font color="white"> <p align="center"> <input type="button" value="+" onclick="topla(this.form)"> <input type="button" value="-" onclick="çikar(this.form)"> <input type="button" value="x" onclick="çarp(this.form)"> <input type="button" value="/" onclick="böl(this.form)"> <input type="button" value="ort" onclick="ort(this.form)"> <input type="reset" value="SIL"></p> <p align="center"><b><a href="http://www.kodmaster.tr.gg/"> <font color="#000000">KODMASTER.TR.GG</font></a></b></p> </form> </td></tr></table> </body> </html>