Geri git   Van.GEN.TR Forum | Yerel Van Forumu > Bilgisayar > Programlama > Javascript

 
 
Konu Araçlarý Stil
Alt 06/04/07, 14:59   #1
muhemar
Site Sahibi
 
muhemar - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: Dec 2006
Mesajlar: 1.709
Tecrübe Puanı: 200 muhemar has much to be proud of muhemar has much to be proud of muhemar has much to be proud of muhemar has much to be proud of muhemar has much to be proud of muhemar has much to be proud of muhemar has much to be proud of muhemar has much to be proud of muhemar has much to be proud of
Standart ÖSS Puaný Hesaplama

Bir lise için yazmýþtým. lazým olur belki..



HTML-Kodu:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Özel Selahattin Eyyubi Lisesi ÖSSPuaný Hesaplama</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-9">

<SCRIPT>
    var winW = 630, winH = 460;
    function getsize() {

        if (parseInt(navigator.appVersion)>3) {
         if (navigator.appName=="Netscape") {
          winW = window.innerWidth;
          winH = window.innerHeight;
         }
         if (navigator.appName.indexOf("Microsoft")!=-1) {
          winW = document.body.offsetWidth;
          winH = document.body.offsetHeight;
         }
        }
    }
</SCRIPT>



<STYLE>
BODY {
    MARGIN: 0px
}
#Halo2_distance {
    MARGIN: 0px; HEIGHT: 77%
}
#td_countdown {
    FONT-SIZE: 30px; MARGIN: 0px; FONT-FAMILY: Courier New; HEIGHT: 23%
}
#date_arrival_msg {
    VISIBILITY: hidden
}
.style1 {color: #006699}
.style2 {color: #0066CC}
body,td,th {
    font-family: Arial;
}
</STYLE>

<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0">


<SCRIPT>document.write(s3);</SCRIPT>
<TR>
<SCRIPT>document.write(s1);</SCRIPT>
<TD ROWSPAN="2" COLSPAN="5">&nbsp;</TD>
<SCRIPT>document.write(s2);</SCRIPT>
 <TD><IMG height=2 alt="" src="Berk Dersanesi_dosyalar/spacer.gif" width=1></TD> 
</TR><TR><TD ROWSPAN="3" 
background="Berk Dersanesi_dosyalar/template_01.png"></TD><TD ROWSPAN="3" 
background="Berk Dersanesi_dosyalar/template_03.png"></TD><TD><IMG height=92 
alt="" src="Berk Dersanesi_dosyalar/spacer.gif" width=1></TD> </TR><TR><TD>&nbsp;</TD> 
<TD>&nbsp;</TD> 
</TR><TR><TD COLSPAN="5" width="790">
<TABLE width=600 align=center>
  <TBODY>
  <TR>
    <TD>
      <SCRIPT>

 var ehhe = 0;

 var ders = new Array('Tur1','Sos1','Mat1','Fen1','Tur2','Sos2','Fen2','Mat2');

 var browser = navigator.appName;
 if (browser == "Netscape") browser = "n";
 else if (browser == "Microsoft Internet Explorer") browser = "e";

 var version = parseInt(navigator.appVersion); 
 if (navigator.appVersion.indexOf("MSIE 5.",1) != -1) version = 5;
 else version = parseInt(navigator.appVersion); 

 function IEEvaluateKeyInput() {
     var keyChar = event.keyCode;
     
    if (keyChar == 10 || keyChar == 13){
        ehhe++;
        if (ehhe == 4) {
            document.getElementById('dugme').click();
            document.getElementById(ders[0] + '_Net').focus();
            document.getElementById(ders[0] + '_Net').selstart = 0;
            document.getElementById(ders[0] + '_Net').sellength = 20;
        }
        else {
            document.getElementById(ders[ehhe] + '_Net').focus();
            document.getElementById(ders[ehhe] + '_Net').selstart = 0;
            document.getElementById(ders[ehhe] + '_Net').sellength = 20;
        }
        ehhe %= 4;
        return false;
    }
    else{
        return true;
    }
 } 
 window.document.onkeypress = IEEvaluateKeyInput;  

</SCRIPT>

      <SCRIPT language=JavaScript>
var Tur1_N,Sos1_N,Mat1_N,Fen1_N,Dil_N,Soz_N,Say_N,Tur2_,N,Sos2_N,Mat2_N,Fen2_N,Soz_Sp,Say_Sp,Dil_sp1,Dil_sp2,Dil_N1,Dil_N2;
    function Puan_Hesapla()
    {    
        Tur1_N = document.frm.Tur1_Net.value 
        Sos1_N = document.frm.Sos1_Net.value 
        Mat1_N = document.frm.Mat1_Net.value 
        Fen1_N = document.frm.Fen1_Net.value 
        Tur2_N = document.frm.Tur2_Net.value 
        Sos2_N = document.frm.Sos2_Net.value 
        Mat2_N = document.frm.Mat2_Net.value 
        Fen2_N = document.frm.Fen2_Net.value 
        //Dil_N = document.frm.Dil_Net.value 
            
   SAY1 = 124.689 + 2.278 * Mat1_N + 2.292 * Fen1_N + 0.773 * Tur1_N + 0.540 * Sos1_N
   SOZ1 = 119.722 + 0.710 * Mat1_N + 0.680 * Fen1_N + 2.680 * Tur1_N + 1.966 * Sos1_N
   EA1  = 119.966 + 2.216 * Mat1_N + 0.708 * Fen1_N + 2.230 * Tur1_N + 0.876 * Sos1_N
   SAY2 = 104.611 + 1.276 * Mat1_N + 1.283 * Fen1_N + 0.866 * Tur1_N + 1.283 * Sos1_N + 1.467 * Mat2_N + 1.131 * Fen2_N
   SOZ2 = 106.703 + 0.767 * Mat1_N + 0.735 * Fen1_N + 1.447 * Tur1_N + 1.062 * Sos1_N + 1.573 * Tur2_N + 1.358 * Sos2_N
   EA2  = 103.188 + 1.209 * Mat1_N + 0.772 * Fen1_N + 1.216 * Tur1_N + 0.956 * Sos1_N + 1.322 * Tur2_N + 1.389 * Mat2_N
  // Dil = 105.091 + 1.528 * Tur_N + 0.238 * Sos_N + 1.156 * Dil_N

        document.frm.OSS_SOZ1.value = Math.round(SOZ1*1000.)/1000.
        document.frm.OSS_SAY1.value = Math.round(SAY1*1000.)/1000.
        document.frm.OSS_EA1.value  = Math.round(EA1*1000.)/1000.
            
        document.frm.OSS_SOZ2.value = Math.round(SOZ2*1000.)/1000.
        document.frm.OSS_SAY2.value = Math.round(SAY2*1000.)/1000.
        document.frm.OSS_EA2.value  = Math.round(EA2*1000.)/1000.
    //    document.frm.OSS_DIL.value = Math.round(Dil*1000.)/1000.
    }
</SCRIPT>

      <STYLE type=text/css>.style1 {
    FONT-SIZE: 12px; COLOR: #cc3300
}
.style3 {
    FONT-SIZE: 24px; COLOR: #cc3300
}
</STYLE>

      <BLOCKQUOTE><STRONG>ÖSS Puan Hesabý<BR>
      </STRONG>Kutulara netlerinizi girip hesapla düðmesine týklayýn.<br>
      Netlerinizi girerken ondalýk kýsmýný belirtmek için "." kullanýnýz. ( 
      Örnek: 14.84 ) &nbsp;</BLOCKQUOTE>
      <FORM style="COLOR: navy" name=frm method=post>
      <TABLE border=0 align="center" cellPadding=10 cellSpacing=0>
        <TBODY style="COLOR: navy">
        <TR>
          <TD width=300 bgColor=#C6D2F0>
            <TABLE bgColor=#C6D2F0 border=0>
              <TBODY>
              <TR>
                <TD vAlign=top width=250><span class="style1"><FONT face=Tahoma 
                  size=2>Türkçe 1</FONT></span></TD>
                <TD vAlign=top width=50><FONT face=Tahoma size=2><INPUT size=5 
                  name=Tur1_Net></FONT></TD></TR>
              <TR>
                <TD vAlign=top width=200><span class="style1"><FONT face=Tahoma 
                  size=2>Sosyal Bilimler 1</FONT></span></TD>
                <TD vAlign=top width=100><FONT face=Tahoma size=2><INPUT 
                  size=5 name=Sos1_Net></FONT></TD></TR>
              <TR>
                <TD vAlign=top width=100><span class="style1"><FONT face=Tahoma 
                  size=2>Matematik 1</FONT></span></TD>
                <TD vAlign=top width=50><FONT face=Tahoma size=2><INPUT size=5 
                  name=Mat1_Net></FONT></TD></TR>
              <TR>
                <TD vAlign=top width=100><span class="style1"><FONT face=Tahoma 
                  size=2>Fen Bilimleri 1</FONT></span></TD>
                <TD vAlign=top width=50><FONT face=Tahoma size=2><INPUT size=5 
                  name=Fen1_Net></FONT></TD></TR>
              <TR>
              <TR>
                <TD vAlign=top width=250><span class="style1"><FONT face=Tahoma 
                  size=2>Edebiyat&nbsp;-&nbsp;Sosyal&nbsp;Bilimler</FONT></span></TD>
                <TD vAlign=top width=50><FONT face=Tahoma size=2><INPUT size=5 
                  name=Tur2_Net></FONT></TD></TR>
              <TR>
                <TD vAlign=top width=100><span class="style1"><FONT face=Tahoma 
                  size=2>Sosyal Bilimler 2</FONT></span></TD>
                <TD vAlign=top width=50><FONT face=Tahoma size=2><INPUT size=5 
                  name=Sos2_Net></FONT></TD></TR>
              <TR>
                <TD vAlign=top width=100><span class="style1"><FONT face=Tahoma 
                  size=2>Matematik 2</FONT></span></TD>
                <TD vAlign=top width=50><FONT face=Tahoma size=2><INPUT size=5 
                  name=Mat2_Net></FONT></TD></TR>
              <TR>
                <TD vAlign=top width=100><span class="style1"><FONT face=Tahoma 
                  size=2>Fen Bilimleri 2</FONT></span></TD>
                <TD vAlign=top width=50><FONT face=Tahoma size=2><INPUT size=5 
                  name=Fen2_Net></FONT></TD></TR></TBODY></TABLE>
          <TD width=3>
            <DIV align=center><INPUT onclick=Puan_Hesapla() type=button value=Hesapla name=dugme> 
            <BR><BR><BR><INPUT id=reset1 type=reset value="Yeni Hesap" name=reset1> 
            </DIV>
          <TD vAlign=top bgColor=#C6D2F0 rowSpan=5>
            <TABLE bgColor=#C6D2F0 border=0>
              <TBODY>
              <TR>
                <TD></TD>
                <TD>
                  <TABLE cellSpacing=0 cellPadding=10 border=0>
                    <TBODY>
                    <TR>
                      <TD><STRONG>2006 ÖSS'deki tahmini puanýnýz</STRONG></TD>
                    <TR>
                      <TD align=middle>
                        <TABLE width=100 border=0>
                          <TBODY>
                          <TR>
                            <TD align=right><span class="style2"><FONT 
                              size=3>SÖZEL&nbsp;1</FONT></span></TD>
                            <TD><FONT face=Tahoma color=#800040 size=1><INPUT 
                              style="FONT-WEIGHT: bold" size=7 
                              name=OSS_SOZ1></FONT></TD></TR>
                          <TR>
                            <TD align=right><span class="style2"><FONT 
                              size=3>SAY&nbsp;1</FONT></span></TD>
                            <TD><FONT face=Tahoma color=#800040 size=1><INPUT 
                              style="FONT-WEIGHT: bold" size=7 
                              name=OSS_SAY1></FONT></TD></TR>
                          <TR>
                            <TD align=right><span class="style2"><FONT 
                              size=3>EA&nbsp;1</FONT></span></TD>
                            <TD><FONT face=Tahoma color=#800040 size=1><INPUT 
                              style="FONT-WEIGHT: bold" size=7 
                              name=OSS_EA1></FONT></TD></TR>
                          <TR>
                            <TD align=right><span class="style2"><FONT 
                              size=3>SÖZEL&nbsp;2</FONT></span></TD>
                            <TD><FONT face=Tahoma color=#800040 size=1><INPUT 
                              style="FONT-WEIGHT: bold" size=7 
                              name=OSS_SOZ2></FONT></TD></TR>
                          <TR>
                            <TD align=right><span class="style2"><FONT 
                              size=3>SAY&nbsp;2</FONT></span></TD>
                            <TD><FONT face=Tahoma color=#800040 size=1><INPUT 
                              style="FONT-WEIGHT: bold" size=7 
                              name=OSS_SAY2></FONT></TD></TR>
                          <TR>
                            <TD align=right><span class="style2"><FONT 
                              size=3>EA&nbsp;2</FONT></span></TD>
                            <TD><FONT face=Tahoma color=#800040 size=1><INPUT 
                              style="FONT-WEIGHT: bold" size=7 
                              name=OSS_EA2></FONT></TD></TR>
          <TR></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TR></TBODY></TABLE></TR></TBODY></TABLE>
     
</BODY></HTML>
__________________
[Bu Adresi (link) Görme Yetkiniz Yok BEDAVA'ya Üye Ol Sitemizden Faydalan....]
muhemar isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
Konu Sayýsý: 92
Takýmýnýz:
 


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 

Yetkileriniz
Yeni Mesaj yazma yetkiniz Aktif deðil dir.
Mesajlara Cevap verme yetkiniz aktif deðil dir.
Eklenti ekleme yetkiniz Aktif deðil dir.
Kendi Mesajýnýzý deðiþtirme yetkiniz Aktif deðildir dir.

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Gitmek istediğiniz klasörü seçiniz


Bütün Zaman Ayarları WEZ +3 olarak düzenlenmiştir. Şu Anki Saat: 08:56 .


Powered by vBulletin
Copyright © 2000-2007 Jelsoft Enterprises Limited.
Sitemap
6, 5, 3, 7, 8, 9, 10, 11, 12, 13, 14, 15, 113, 16, 17, 18, 19, 81, 20, 27, 22, 23, 24, 25, 26, 48, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 43, 136, 40, 58, 45, 42, 44, 46, 47, 53, 54, 55, 56, 57, 59, 60, 70, 61, 62, 63, 64, 65, 66, 68, 69, 71, 72, 74, 75, 76, 77, 78, 79, 80, 82, 83, 96, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 98, 97, 100, 101, 102, 103, 106, 104, 105, 112, 109, 108, 107, 110, 111, 114, 115, 118, 116, 117, 119, 148, 154, 124, 165, 122, 120, 123, 121, 150, 153, 125, 128, 129, 131, 132, 133, 134, 135, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 151, 149, 202, 175, 164, 152, 167, 155, 156, 157, 158, 159, 160, 161, 162, 163, 195, 169, 166, 168, 170, 171, 172, 199, 174, 173, 196, 200, 176, 177, 180, 178, 179, 182, 189, 187, 184, 186, 191, 192, 193, 194, 197, 198, 201, 203, 229, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 236, 231, 232, 233, 234, 235, 237, 240, 239, 241, 243, 242, 244,