İPUCU

Seçenekler

JavaScript Örnekleri – Ygs Puan Hesaplama

04-05-2015 18:20
#1
Komega - ait Kullanıcı Resmi (Avatar)
Üye
Üyelik tarihi:
07/2013
Nereden:
Dünydn .s
Mesajlar:
9.742
Teşekkür (Etti):
851
Teşekkür (Aldı):
2447
Konular:
1347
Ticaret:
(0) %
Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<**** http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>www.bilisimogretmeni.com</title>
<script type="text/javascript" language="javascript">
function hesapla()
{
var tdogru=********.ygshesapla.tdogru.value;
var tyanlis=********.ygshesapla.tyanlis.value;
var tnet=tdogru-(tyanlis/4);
********.ygssonuc.tnet.value=tnet;
//www.bilisimogretmeni.com
var mdogru=********.ygshesapla.mdogru.value;
var myanlis=********.ygshesapla.myanlis.value;
var mnet=mdogru-(myanlis/4);
********.ygssonuc.mnet.value=mnet;
//www.bilisimogretmeni.com
var sdogru=********.ygshesapla.sdogru.value;
var syanlis=********.ygshesapla.syanlis.value;
var snet=sdogru-(syanlis/4);
********.ygssonuc.snet.value=snet;
//www.bilisimogretmeni.com
var fdogru=********.ygshesapla.fdogru.value;
var fyanlis=********.ygshesapla.fyanlis.value;
var fnet=fdogru-(fyanlis/4);
********.ygssonuc.fnet.value=fnet;
//www.bilisimogretmeni.com
ygs1=98.507+(tnet*1.905)+(snet*1.081)+(mnet*3.772)+(fnet*3.279);
********.ygssonuc.ygs1.value=ygs1;
ygs2=98.529+(tnet*1.877)+(snet*1.065)+(mnet*2.787)+(fnet*4.308);
********.ygssonuc.ygs2.value=ygs2;
ygs3=96.454+(tnet*3.831)+(snet*3.261)+(mnet*1.897)+(fnet*1.099);
********.ygssonuc.ygs3.value=ygs3;
ygs4=96.435+(tnet*2.837)+(snet*4.293)+(mnet*1.873)+(fnet*1.086);
********.ygssonuc.ygs4.value=ygs4;//www.bilisimogretmeni.com
ygs5=97.101+(tnet*3.597)+(snet*2.201)+(mnet*3.161)+(fnet*1.113);
********.ygssonuc.ygs5.value=ygs5;
ygs6=97.859+(tnet*3.184)+(snet*1.098)+(mnet*3.552)+(fnet*2.220);
********.ygssonuc.ygs6.value=ygs6;
}
</script>
</head>
<body>
<form name="ygshesapla">
<table>
<tr>
<td></td>
<td>D</td>
<td>/</td>
<td>Y</td>
</tr>
<tr>
<td>YGS Türkçe</td>
<td><input type="text" name="tdogru" /></td>
<td>/</td>
<td><input type="text" name="tyanlis" /></td>
</tr>
<tr>
<td>YGS Sosyal Bilimler</td>
<td><input type="text" name="sdogru" /></td>
<td>/</td>
<td><input type="text" name="syanlis" /></td>
</tr>
<tr><!--//www.bilisimogretmeni.com -->
<td>YGS Matematik</td>
<td><input type="text" name="mdogru" /></td>
<td>/</td>
<td><input type="text" name="myanlis" /></td>
</tr>
<tr>
<td>YGS Fen Bilimleri</td>
<td><input type="text" name="fdogru" /></td>
<td>/</td>
<td><input type="text" name="fyanlis" /></td>
</tr>
<tr>
<td colspan="1"><input type="reset" value="Temizle" /></td>
<td colspan="3"><input type="button" value="Hesapla"  onclick="hesapla()"/></td>
</tr>
</table><!--//www.bilisimogretmeni.com -->
</form>
<form name="ygssonuc">
<table>
<tr>
<td>Türkçe Net</td>
<td>Sosyal Bilimler Net</td>
<td>Matematik Net</td>
<td>Fen Bilimleri Net</td>
</tr>
<tr>
<td><input type="text"  name="tnet"  disabled="disabled"/></td>
<td><input type="text"  name="snet" disabled="disabled" /></td>
<td><input type="text"  name="mnet" disabled="disabled" /></td>
<td><input type="text"  name="fnet" disabled="disabled" /></td>
</tr>
</table>
<table><!--//www.bilisimogretmeni.com -->
<tr>
<td>YGS-1</td>
<td><input type="text" disabled="disabled" name="ygs1" /></td>
</tr>
<tr>
<td>YGS-2</td>
<td><input type="text" disabled="disabled" name="ygs2" /></td>
</tr>
<!--//www.bilisimogretmeni.com -->
<tr>
<td>YGS-3</td>
<td><input type="text" disabled="disabled" name="ygs3" /></td>
</tr>
<tr>
<td>YGS-4</td>
<td><input type="text" disabled="disabled" name="ygs4" /></td>
</tr>
<tr>
<td>YGS-5</td>
<td><input type="text" disabled="disabled" name="ygs5" /></td>
</tr>
<tr>
<td>YGS-6</td>
<td><input type="text" disabled="disabled" name="ygs6" /></td>
</tr>
</table>
</form>
</body>
</html>
Kullanıcı İmzası

- The End.

- Emekli Uzman Moderatör.




Bookmarks


« Önceki Konu | Sonraki Konu »
Seçenekler

Yetkileriniz
Sizin Yeni Konu Acma Yetkiniz var yok
You may not post replies
Sizin eklenti yükleme yetkiniz yok
You may not edit your posts

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodları Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Kapalı