<!-- START OF SCRIPT --><br /><script LANGUAGE="JavaScript"><br /><!-- begin script<br /><br />//General Array Function<br />function MakeArray(n) {<br />this.length = n;<br />for (var i = 1; i <=n; i++) {<br />this[i] = 0;<br />}<br />}<br /><br />//Initialize Days of Week Array<br />days = new MakeArray(7);<br />days[0] = "Cumartesi"<br />days[1] = "Pazar"<br />days[2] = "Pazartesi"<br />days[3] = "Sali"<br />days[4] = "Carsamba"<br />days[5] = "Persembe"<br />days[6] = "Cuma"<br /><br />//Initialize Months Array<br />months = new MakeArray(12);<br />months[1] = "Ocak"<br />months[2] = "Subat"<br />months[3] = "Mart"<br />months[4] = "Nisan"<br />months[5] = "Mayis"<br />months[6] = "Haziran"<br />months[7] = "Temmuz"<br />months[8] = "Agustos"<br />months[9] = "Eylul"<br />months[10] = "Ekim"<br />months[11] = "Kasim"<br />months[12] = "Aralik"<br /><br />//Day of Week Function<br />function compute(form) {<br />var val1 = parseInt(form.day.value, 10)<br />if ((val1 < 0) || (val1 > 31)) {<br />alert("1 ile 31 arasi bir tarih girin…")<br />}<br />var val2 = parseInt(form.month.value, 10)<br />if ((val2 < 0) || (val2 > 12)) {<br />alert("1 ile 12 arasi bir tarih girin…")<br />}<br />var val2x = parseInt(form.month.value, 10)<br />var val3 = parseInt(form.year.value, 10)<br />if (val3 < 1900) {<br />alert("1900 ile 2050 arasi bir tarih girin…")<br />}<br />if (val2 == 1) {<br />val2x = 13;<br />val3 = val3-1<br />}<br />if (val2 == 2) {<br />val2x = 14;<br />val3 = val3-1<br />}<br />var val4 = parseInt(((val2x+1)*3)/5, 10)<br />var val5 = parseInt(val3/4, 10)<br />var val6 = parseInt(val3/100, 10)<br />var val7 = parseInt(val3/400, 10)<br />var val8 = val1+(val2x*2)+val4+val3+val5-val6+val7+2<br />var val9 = parseInt(val8/7, 10)<br />var val0 = val8-(val9*7)<br />form.result1.value = months[val2]+" "+form.day.value +", "+form.year.value<br />form.result2.value = days[val0]<br />}<br /><br />// end script --><br /></script><br /><br /><h3><i>HANGİ GÜN DOĞDUN? <i></h3><br /><b><br /><br /><p></b> Dogdugunuz tarihi yazın ve hesapla tusuna basin</p><br /><br /><form><br /><p>Dogdugunuz ay(1-12): <input TYPE="text" NAME="month" SIZE="2"> </p><br /><p>Dogdugunuz gun (1-31): <input TYPE="text" NAME="day" SIZE="2"> </p><br /><p>Dogdugunuz yil(ornek:2007): <input TYPE="text" NAME="year" SIZE="4"> </p><br /><p><input TYPE="button" VALUE="Hesapla" ONCLICK="compute(this.form)"> <input TYPE="reset"<br />VALUE="Temizle"> </p><br /><p>Dogdugunuz tarih: <input TYPE="text" NAME="result1" SIZE="18"> </p><br /><p>DOGDUGUNUZ GUN: <input TYPE="text" NAME="result2" SIZE="20"> </p><br /></form><br /><br /><br /><br /><br /><!-- END OF SCRIPT --><br /><br /><br /><br /> <a href="http://html-kodlari.tr.gg">WebUzmanı</a>