Html kodu - Site - Bedava sitem - Blog
Ekle
<!---kaynak---><table cellpadding="0" cellspacing="0" width="500" height="312" align="center"><!-- MSTableType="layout" --><tbody><tr><td width="500" height="312"><font face="Verdana" color="#000080"><b><!-- START OF SCRIPT --> <script LANGUAGE="JavaScript"><!-- begin script//General Array Functionfunction MakeArray(n) {this.length = n;for (var i = 1; i <=n; i++) {this[i] = 0;}}//Initialize Days of Week Arraydays = new MakeArray(7);days[0] = "Cumartesi"days[1] = "Pazar"days[2] = "Pazartesi"days[3] = "Sali"days[4] = "Carsamba"days[5] = "Persembe"days[6] = "Cuma"//Initialize Months Arraymonths = new MakeArray(12);months[1] = "Ocak"months[2] = "Subat"months[3] = "Mart"months[4] = "Nisan"months[5] = "Mayis"months[6] = "Haziran"months[7] = "Temmuz"months[8] = "Agustos"months[9] = "Eylul"months[10] = "Ekim"months[11] = "Kasim"months[12] = "Aralik"//Day of Week Functionfunction compute(form) {var val1 = parseInt(form.day.value, 10)if ((val1 < 0) || (val1 > 31)) {alert("1 ile 31 arasi bir tarih girin ")}var val2 = parseInt(form.month.value, 10)if ((val2 < 0) || (val2 > 12)) {alert("1 ile 12 arasi bir tarih girin ")}var val2x = parseInt(form.month.value, 10)var val3 = parseInt(form.year.value, 10)if (val3 < 1900) {alert("1900 ile 2050 arasi bir tarih girin ")}if (val2 == 1) {val2x = 13;val3 = val3-1}if (val2 == 2) {val2x = 14;val3 = val3-1}var val4 = parseInt(((val2x+1)*3)/5, 10)var val5 = parseInt(val3/4, 10)var val6 = parseInt(val3/100, 10)var val7 = parseInt(val3/400, 10)var val8 = val1+(val2x*2)+val4+val3+val5-val6+val7+2var val9 = parseInt(val8/7, 10)var val0 = val8-(val9*7)form.result1.value = months[val2]+" "+form.day.value +", "+form.year.valueform.result2.value = days[val0]}// end script --></script> </b> <span style="text-decoration: none; font-weight:700">HANGİ GÜN DOĞDUN? </span> </font><p><b><font color="#000080" face="Verdana">Dogdugunuz tarihi yazın ve hesapla tusuna basin</font></b></p><form><p><font color="#000080" face="Verdana"><b>Dogdugunuz ay(1-12): </b> <font size="3" face="Verdana"> <input name="month" size="2" style="font-weight: 700" /></font><b> </b> </font></p><font color="#000080" face="Verdana"><b>Dogdugunuz gun (1-31): </b> <font size="3" face="Verdana"> <input name="day" size="2" style="font-weight: 700" /></font><b> </b> </font><p><font color="#000080" face="Verdana"><b>Dogdugunuz yil(ornek:2007): </b> <font size="3" face="Verdana"> <input name="year" size="4" style="font-weight: 700" /></font><b> </b> <font size="3" face="Verdana"> <input type="button" value="Hesapla" onclick="compute(this.form)" style="font-weight: 700" /></font><b> </b><font size="3" face="Verdana"> <input type="reset" value="Temizle" style="font-weight: 700" /></font><b> </b> </font></p><p><font color="#000080" face="Verdana"><b>Dogdugunuz tarih: </b> <font size="3" face="Verdana"> <input name="result1" size="18" style="font-weight: 700" /></font></font></p><p><font color="#000080" face="Verdana"><b>DOGDUGUNUZ GUN: </b> <font size="3" face="Verdana"> <input name="result2" size="20" style="font-weight: 700" /></font></font></p></form><p align="center"><br /><a target="_blank" href="" style="text-decoration: none"> </a></p></td></tr></tbody></table><!---kaynak--->
Kod-Site kodları - HTML
Hiç yorum yok:
Yorum Gönder