Forum'da ara:
Ara


Yazar Mesaj
Mesaj30.07.2009, 06:41 (UTC)    
Mesaj konusu: sitene hesap makinesi kodu

Kod:
<!—www.html-kodbankasi.tr.gg Kod Baslangici --><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_fckprotectedatt=" onclick="topla(this.form)"">
<input type="button" value="-" onclick_fckprotectedatt=" onclick="çikar(this.form)"">
<input type="button" value="x" onclick_fckprotectedatt=" onclick="çarp(this.form)"">
<input type="button" value="/" onclick_fckprotectedatt=" onclick="böl(this.form)"">
<input type="button" value="ort" onclick_fckprotectedatt=" onclick="ort(this.form)"">
<input type="reset" value="SIL"><FCK:hr />©2008 www.html-kodbankasi.tr.gg</form>
</td></tr></table>
</body>
</html>
<!—www.html-kodbankasi.tr.gg kod Kod Sonu --></body></html>
Önceki mesajları göster:   


Powered by phpBB © 2001, 2005 phpBB Group
Türkçe Çeviri: phpBB Türkiye & Erdem Çorapçıoğlu