Deutsch
<!--Um diesen Effekt zu erzielen, sind drei Schritte erforderlich: Schritt 1: Fügen Sie den folgenden Code zum Bereich <head> hinzu--> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var byear = prompt('Please Geben Sie Ihr Geburtsjahr ein','1976'); var mm = prompt('Bitte geben Sie Ihren Geburtsmonat ein','6'); var Jahr = neues Datum(); var Jahr3 = (Jahr < 2000) : Jahr2 = neues Datum(); = thedate.getDate(); yy2 = thedate.getYear(); if (yy2 < 100) yy2 - byear; if ((mm2 == mm) && ( dd2 < bday)) yourage--; , 'Oktober', 'Dezember' ); var startday = new Date(); var secPerDay = 0; var secsLeft = 0; ; var minRound = 0; var timeRemain = 0; function stopclock() { if(timerRunning) ) ; } function showtime() { today = new Date(); enday = new Date(""+bmonth+", "+bday+" "+year3+" 00:00"" ) ; secsPerDay = 60 * 1000 ; HoursPerDay = 24 * 60 * 1000; secsLeft = (enday.getTime()) / minPerDay = Math .round(secsLeft); secsRemain = (secsLeft - secsRound) ? secsRemain = 60 - ((secsRound - secsRound) * 60; secsRemain = Math.round (secsRemain); minLeft = ((enday.getTime()) / hoursPerDay); minRemain = minLeft - minRemain = 60 - ((minRound - minLeft) * 60): minRemain = ((minLeft - minRound) * 60); minRemain = Math.round(minRemain - 0,495); hoursLeft = ((enday.getTime() - today.getTime()) /hoursRound = Math.round(hoursLeft);hoursRemain = (hoursRemain < 0) ?hoursRemain = 24 - ((hoursRound - hoursLeft) * 24) :hoursRemain = ((hoursLeft - hoursRound) * 24 ); hoursRemain = Math.round(hoursRemain - 0,5); daysLeft = ((enday.getTime() - today.getTime()) / PerDay); daysLeft = Math.round(daysLeft); daysRound; if (daysRemain == 1) day_rem = " days, " else day_rem = " days, " if (hoursRemain == 1) Hour_rem = " Hours, " else Hour_rem = " Hours, " if (minRemain == 1 ) min_rem = " Minuten, " else min_rem = " Minuten, " if (secsRemain == 1) sec_rem = " seconds" else sec_rem = " seconds" timeRemain = daysRemain + day_rem + hoursRemain +hour_rem + minRemain + min_rem + secsRemain + sec_rem document. down.face.value = timeRemain; timerID = setTimeout("showtime()",1000); timerRunning = true if (daysRemain < 0) year3 = year3 + 1 } function showtime1() { startday = new Date(" "+ bmonth+" "+bday+", "+byear+" 00:00 EDT"); today = new Date(); minPerDay = 60 * 60 * 1000; PerDay = 24 * 60 * 60 * 1000; secsLeft = (today.getTime() - startday.getTime()) / minPerDay = Math.round(secsLeft); secsRemain = (secsRemain < 0) ? secsRemain = 60 - ((secsRound - secsLeft) * 60) : secsRemain = (secsLeft - secsRound) * 60; secsRemain = Math.round(secsRemain); minLeft = ((today.getTime() - startday .getTime()) / hoursPerDay); minRound = Math.round(minLeft); minRemain = (minRemain < 0) : minRemain = (( minLeft - minRound) * 60); minRemain = Math.round(minRemain - 0,495); hoursLeft = ((today.getTime() - startday.getTime()) / PerDay); HoursLeft - HoursRound; HoursRemain = (hoursRemain < 0) ? HoursRemain = 24 - ((hoursRound - HoursRound) * 24); HoursRemain = Math.round(hoursRemain - 0.5) ; = ((today.getTime() - startday.getTime()) / PerDay); daysRound = Math.round(daysLeft); if (daysRemain == 1) day_rem = " Tage, " sonst Tag_rem = " Tage, " if (hoursRemain == 1) Stunde_rem = " Stunden, " sonst Stunde_rem = " Stunden, " wenn (minRemain == 1) min_rem = " Minuten, " sonst min_rem = " Minuten , " if (secsRemain == 1) sec_rem = " seconds" else sec_rem = " seconds" timeRemain = daysRemain + day_rem + hoursRemain + Hour_rem + minRemain + min_rem + secsRemain + sec_rem; document.up.face.value = timeRemain = setTimeout( "showtime1()",1000); timerRunning = true; } // Ende --> </script> <!--Schritt 2: Fügen Sie den folgenden Code zum <body>-Bereich hinzu--> <center> <form name ="down" onSubmit="0"> <script Language="JavaScript"> document.write("<b>Ihr Geburtsdatum ist: „+byear+“ Jahr „+mm+“ Monat „+bday+“ Tag . („+ mm+"/"+bday+"/"+byear+")</b>"); document.write("<br><br>Dieses Jahr bist du „+yourage+“ Jahre alt und du bist „+age2+“ „ Jahre alt:"); </script> <br> <input type="text" name="face" size="47" value="Ein Browser, der JavaScript 1.1+ unterstützt, ist erforderlich."> </form> <p > <br> <form name="up" onSubmit="1"> So lange wirst du auf dieser Welt leben<br> <input type="text" name="face" size="47" value=" Es ist ein Browser erforderlich, der JavaScript 1.1+ unterstützt body OnLoad="startclock()">