10-05-2008, 02:23
Forumda arattım böyle bir konu bulamadım. nette dolaşırken bu hesap makinası kod larını buldum ve hem sizlerle paylaşmak ve hemde ortaya nasıl alırız diye sorayım dedim. Eğer bir hatam varsa şimdiden herkesten özür dilerim. Bu kodları ana sayfa şablonlarından index in en altına kopyaladım.
İlgilenen olursa buyursun vede bizi bilgilendirsin.
İlgilenen olursa buyursun vede bizi bilgilendirsin.
Kod:
<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="200"bgcolor="black"><tr><td>
<form name="formum"><font color="white">
<center><b>SAYI ISLEMCISI S.1.0</b></center>
1.sayi<input type="text" name="say1">
<br>2.sayi<input type="text" name="say2">
<br>sonuç<input type="text" name="sonuç">
<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"><hr>©2008 www.htmlkod.tr.gg</form>
</td></tr></table>
</body>
</html>