ÖSS puan hesaplayıcı kodu
<div style="overflow: auto; width: 510px">
<script language="javascript1.2" type="text/javascript">
function puan()
{
var a,b,c,d,e,f,g,h
a=document.form1.T1.value
b=document.form1.T2.value
c=document.form1.T3.value
d=document.form1.T4.value
f=document.form1.T5.value
g=document.form1.T6.value
h=document.form1.T7.value
if(a > 45)
{
alert("Türkçe netini 45'den büyük girdiniz, lütfen kontrol ediniz")
}
if(b > 45)
{
alert("Sosyal Bilimler netini 45'den büyük girdiniz, lütfen kontrol ediniz")
}
if(c > 45)
{
alert("Matematik netini 45'den büyük girdiniz, lütfen kontrol ediniz")
}
if(d > 45)
{
alert("Fen Bilimleri netini 45'den büyük girdiniz, lütfen kontrol ediniz")
}
if(a<46 && b<46 && c<46 && d<46)
{
document.form1.T5.value= 79.487 + c*0.210 + d*0.210 + a*0.804 + b*0.804
document.form1.T6.value= 93.127 + c*0.943 + d*0.943 + a*0.179 + b*0.179
document.form1.T7.value= 86.043 + c*0.746 + d*0.238 + a*0.739 + b*0.311
}
}
var a,b,c,d,e,f,g,h
a=document.form1.T1.value
b=document.form1.T2.value
c=document.form1.T3.value
d=document.form1.T4.value
f=document.form1.T5.value
g=document.form1.T6.value
h=document.form1.T7.value
</script>
<p align="center"><strong><font face="Arial">Öss Puan Hesaplayıcı </font></strong></p>
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan -->
<script language="JavaScript" type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.T1.value == "")
{
alert("Please enter a value for the "T1" field.");
theForm.T1.focus();
return (false);
}
if (theForm.T1.value.length > 5)
{
alert("Please enter at most 5 characters in the "T1" field.");
theForm.T1.focus();
return (false);
}
if (theForm.T3.value == "")
{
alert("Please enter a value for the "T3" field.");
theForm.T3.focus();
return (false);
}
if (theForm.T3.value.length > 5)
{
alert("Please enter at most 5 characters in the "T3" field.");
theForm.T3.focus();
return (false);
}
if (theForm.T2.value == "")
{
alert("Please enter a value for the "T2" field.");
theForm.T2.focus();
return (false);
}
if (theForm.T2.value.length > 5)
{
alert("Please enter at most 5 characters in the "T2" field.");
theForm.T2.focus();
return (false);
}
if (theForm.T4.value == "")
{
alert("Please enter a value for the "T4" field.");
theForm.T4.focus();
return (false);
}
if (theForm.T4.value.length > 5)
{
alert("Please enter at most 5 characters in the "T4" field.");
theForm.T4.focus();
return (false);
}
return (true);
}
//--></script>
<form name="form1">
<table width="100%" border="0">
<tbody>
<tr>
<td align="left" width="50%" bgcolor="#000066"><font face="Arial" color="#ffffff" size="2"><strong>Sözel Net:</strong></font></td>
<td align="left" width="50%" bgcolor="#000066"><font face="Arial" color="#ffffff" size="2"><strong>Sayısal Net:</strong></font></td>
</tr>
<tr>
<td width="50%" bgcolor="#d2d2ff"><strong>Türkçe Net : </strong><!--webbot bot="Validation" B-Value-Required="TRUE"
I-Maximum-Length="5" --><input maxlength="5" size="5" name="T1" type="text" /></td>
<td width="50%" bgcolor="#d2d2ff"><strong>Matematik Net : </strong><!--webbot
bot="Validation" B-Value-Required="TRUE" I-Maximum-Length="5" --><input maxlength="5" size="5" name="T3" type="text" /></td>
</tr>
<tr>
<td width="50%" bgcolor="#d2d2ff"><strong>Sosyal Bilimler Net : </strong><!--webbot
bot="Validation" B-Value-Required="TRUE" I-Maximum-Length="5" --><input maxlength="5" size="5" name="T2" type="text" /></td>
<td width="50%" bgcolor="#d2d2ff"><strong>Fen Bilimleri Net : </strong><!--webbot
bot="Validation" B-Value-Required="TRUE" I-Maximum-Length="5" --><input maxlength="5" size="5" name="T4" type="text" /></td>
</tr>
<tr>
<td width="50%" bgcolor="#d2d2ff"><strong>Tamam : <input onclick="puan()" type="button" value="Hesapla" /> <input type="reset" value="Temizle" /></strong></td>
</tr>
</tbody>
</table>
<table width="100%" border="0">
<tbody>
<tr>
<td width="50%" bgcolor="#000066"><strong><font face="Arial" color="#ffffff" size="2">Puan Türü:</font></strong></td>
<td width="50%" bgcolor="#000066"><strong><font face="Arial" color="#ffffff" size="2">Puan:</font></strong></td>
</tr>
<tr>
<td width="50%" bgcolor="#d2d2ff"><strong>Sözel Puan :</strong></td>
<td width="50%" bgcolor="#d2d2ff"><input name="T5" type="text" /></td>
</tr>
<tr>
<td width="50%" bgcolor="#d2d2ff"><strong>Sayısal Puan :</strong></td>
<td width="50%" bgcolor="#d2d2ff"><input name="T6" type="text" /></td>
</tr>
<tr>
<td width="50%" bgcolor="#d2d2ff"><strong>Eşit Ağırlık Puan :</strong></td>
<td width="50%" bgcolor="#d2d2ff"><input name="T7" type="text" /></td>
</tr>
</tbody>
</table>
</form>
</div>
<br />
<br />