www.koddmatik.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="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>
|