#!/COMMUNITY
Members: 5187
davon online: 1
weitere User: 16
06.01.2009 / 07:58
Community-Member werden
|
Paßwort vergessen
|
OnlineMonitor (1)
Perl-Archiv
Forum
Javascript
Home
PERLscripts
PHPscripts
JAVAscripts
Hilfreiches
Links2www
Newscenter
Community
Interna
Javascript
Archivübersicht
Tutorials
Zum Forum
JS-Links
BuchTipps
WebForen
Forenübersicht
Neueste Themen
Ohne Antwort
Aktivste Themen
Themensuche
Forenarchiv
Newsgroups
Sehenswertes
Kontaktlinsen
EP:Netshop
Bondtravel
Babywalz Shop
Conrad.de
Reifen Shop
Reisen
Uhren-Schmuck
Walbusch
Web-Consulting
Kabel-Shop
Büromöbel
Webhosting
Javascript » Rechner » Geburtstagsrechner
zur Übersicht
Kategorie
Rechner
Bezeichnung
Geburtstagsrechner
ScriptDemo
Neues Fenster für Demo öffnen
Statistik
8192 Aufrufe davon 2x gestern
Keine Beschreibung vorhanden.
Javascript-Quellcode
(einfach markieren, kopieren und lokal abspeichern)
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin function calculate() { month = document.form.month.selectedIndex; month = document.form.month.options[month].value; day = document.form.day.selectedIndex; day = document.form.day.options[day].value; year = document.form.year.value; var oyear=year var dob = " "+ year +", "+month + ", "+day; var thenx = new Date(dob); var year=thenx.getYear(); if (year<100) year="19" + thenx.getYear(); else year=thenx.getYear(); if (year > 1969) wyear=year; else { if (oyear<1900) { if (oyear>1800) { wrelyear= (eval(oyear)-1801)%(28); wyear = wrelyear+1981; } else wyear = 1970 } else if (oyear>1900) {wrelyear= (eval(oyear)-1901)%(28); wyear= wrelyear+1985 } else if (oyear==1900) {wyear= 1990; } } var dob = " "+ wyear +", "+month + ", "+day; var thenx = new Date(dob); var theday = thenx.getDay()+1; var date=thenx.getDate(); var weekday = new Array(6); weekday[1]="Sonntag"; weekday[2]="Montag"; weekday[3]="Dienstag"; weekday[4]="Mittwoch"; weekday[5]="Donnerstag"; weekday[6]="Freitag"; weekday[7]="Samstag"; if (day != date) alert("Sorry! That appears to be an invalid date!"+day+" ..."+date+"::"+oyear+"..."+year+" "+dob+"=="+wyear+".-.-"+thenx+" "+day+" "+month); else { dayborn = weekday[theday]; dob = dayborn + " geboren !"; alert("Du bist an einem " + dob); } } // End --> </script> <form name=form> <table border=2 cellspacing=0 cellpadding=0 width="185"> <tr> <td colspan=3 align=center>Wann bist Du geboren?</td> </tr> <tr> <td align=center width="66"> <select name="month"> <option>Monat</option> <option value="January">Jan </option> <option value="February">Feb </option> <option value="March">März </option> <option value="April">Apr </option> <option value="May">Mai </option> <option value="June">Jun </option> <option value="July">Jul </option> <option value="August">Aug </option> <option value="September">Sep </option> <option value="October">Okt </option> <option value="November">Nov </option> <option value="December">Dez </option> </select> </td> <td align=center width="64"> <select name="day"> <option>Tag</option> <option value="1">01 </option> <option value="2">02 </option> <option value="3">03 </option> <option value="4">04 </option> <option value="5">05 </option> <option value="6">06 </option> <option value="7">07 </option> <option value="8">08 </option> <option value="9">09 </option> <option value="10">10 </option> <option value="11">11 </option> <option value="12">12 </option> <option value="13">13 </option> <option value="14">14 </option> <option value="15">15 </option> <option value="16">16 </option> <option value="17">17 </option> <option value="18">18 </option> <option value="19">19 </option> <option value="20">20 </option> <option value="21">21 </option> <option value="22">22 </option> <option value="23">23 </option> <option value="24">24 </option> <option value="25">25 </option> <option value="26">26 </option> <option value="27">27 </option> <option value="28">28 </option> <option value="29">29 </option> <option value="30">30 </option> <option value="31">31 </option> </select> </td> <td align=center width="45"> <input type=text name=year value="19" size=4 maxlength=4> </td></tr> </table><p> <input type=button value="Berechne" onClick="calculate()"> </center> </form>
Kommentare zu
Geburtstagsrechner
0 Kommentar(e) vorhanden / Anzeige der neuesten 5
Noch keine Kommentare zu diesem Javascript vorhanden.
Alle Kommentare anzeigen
-
Kommentar hinzufügen
© PERL/CGI/
PHP
/JS/SCRIPT/unity.de 1998-2008 .::.
interaktiv.shop
.::.
CGI-Service
.::.
Kontakt
.::.
Impressum
Link: /javascript/scripts/javascript_0182_main.shtml .::. Aufrufe heute: 1 .::. Aufrufe gesamt: 5438