Ziyaretçiniz doğum tarihini girdiğinde kaç ay, hafta, gün, saat yaşadığını ve doğum tarihine ne kadar kaldığını verir. <HEAD>..</HEAD> arasına eklenecek kod <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function run { with { dd = parseInt + 1; mm = parseInt + 1; yy = year. value; if (yy. length!= 4 || isNaN } days = new Date ; gdate = days. getDate ; gmonth = days. getMonth ; gyear = days. getYear ; if (gyear < 2000) gyear += 1900; age = gyear - yy; if ((mm (gmonth + 1)) && (dd <= parseInt else { if (mm <= else } if (age 0) age = age; document. agecalc. timealive. value = "Siz " + age+ " yaşındasınız. . .\n\n"; if (mm <= (gmonth + 1)) age = age - 1; if ((mm (gmonth + 1)) && (dd > parseInt age = age + 1; var m; var n; if (mm 12) n = 31 - dd; if (mm 11) n = 61 - dd; if (mm 10) n = 92 - dd; if (mm 9) n = 122 - dd; if (mm 8) n = 153 - dd; if (mm 7) n = 184 - dd; if (mm 6) n = 214 - dd; if (mm 5) n = 245 - dd; if (mm 4) n = 275 - dd; if (mm 3) n = 306 - dd; if (mm 2) if (mm 1) if (gmonth 1) m = 31; if (gmonth 2) if (gmonth 3) if (gmonth 4) if (gmonth 5) if (gmonth 6) if (gmonth 7) if (gmonth 8) if (gmonth 9) if (gmonth 10) if (gmonth 11) if (gmonth 12) months = age 12; months += 12 - parseInt ; months += gmonth; totdays = (parseInt 365); totdays += age / 4; totdays = parseInt + gdate + m + n; if (gmonth 1) p = 31 + gdate; if (gmonth 2) if (gmonth 3) if (gmonth 4) if (gmonth 5) if (gmonth 6) if (gmonth 7) if (gmonth 8) if (gmonth 9) if (gmonth 10) if (gmonth 11) if (gmonth 12) weeks = (age 365) + n + p; weeks = weeks / 7; etcdays = parseFloat - parseInt ; etcdays = Math. round(etcdays 7); weeks = parseInt ; etcdays += parseInt(age / 4); if (etcdays > 7) weeks += parseInt(etcdays / 7); document. agecalc. timealive. value += " or " + weeks + " hafta old\n"; document. agecalc. timealive. value += " or " + months + " ay old\n"; document. agecalc. timealive. value += " or " + totdays + " gün old\n"; var time = new Date ; ghour = time. getHours ; gmin = time. getMinutes ; gsec = time. getSeconds ; hour = ((age 365) + n + p) 24; hour += (parseInt(age / 4) 24); document. agecalc. timealive. value += " or " + hour + " Saat old\n"; var min = (hour 60) + gmin; document. agecalc. timealive. value += " or " + min + " Dakika old\n"; sec = (min 60) + gsec; document. agecalc. timealive. value += " or " + sec + " Saniye old"; mm = mm - 1; var r; if (mm 0) r = 0; if (mm 1) r = 31; if (mm 2) if (mm 3) if (mm 4) if (mm 5) if (mm 6) if (mm 7) if (mm 8) if (mm 9) if (mm 10) if (mm 11) mm = mm + 1; r = parseInt + parseInt ; if ((mm >= (gmonth + 1)) && else { if ((leapyear && ((mm > 2) && (dd < 29))) else bday = a + ; } nhour = 24 - parseInt ; nmin = 60 - parseInt ; nsec = 60 - parseInt ; while (bday > 366) bday -= 365; if (((bday 366) && (leapyear || ((bday 365) && (! leapyear else } function leapyear // End --> </script>