#!/COMMUNITY
Members: 5374
davon online: 1
weitere User: 20
12.02.2012 / 10:37
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
Javascript » Datum » Schwangerschaftskalender
zur Übersicht
Kategorie
Datum
Bezeichnung
Schwangerschaftskalender
ScriptDemo
Neues Fenster für Demo öffnen
Statistik
12568 Aufrufe davon 0x gestern
Keine Beschreibung vorhanden.
Javascript-Quellcode
(einfach markieren, kopieren und lokal abspeichern)
<title>Euer persönlicher Schwangerschaftskalender</title> <script language="JavaScript"><!-- //<!-- //Arrays/functions for date output formatting function makeArray(len){ for (var i = 0; i < len; i++) this[i]=null; this.length = len; } function makeArray() { for (i = 0; i<makeArray.arguments.length; i++) this[i + 1] = makeArray.arguments[i]; } var months = new makeArray('Januar','Februar','März','April', 'Mai','Juni','Juli','August','September', 'Oktober','November','Dezember'); function y2k(number) { return (number < 1000) ? number + 1900 : number; } function PregEvent(theForm) { //Form verifying: if (theForm.Year.value == "") { alert ("Bitte eine Jahreszahl angeben!"); return; } if (("" + parseInt(theForm.Year.value)) != theForm.Year.value) { alert ("Bitte nur Zahlenwerte eingeben!"); return; } if (theForm.Year.value < 1000){ alert ("Bitte eine vierstellige Jahreszahl eingeben"); return; } //Data output: //Set Up Last Mens Date into MS var v_LastMensDate = Date.UTC(theForm.Year.value, theForm.Month.options[theForm.Month.selectedIndex].value, theForm.Date.options[theForm.Date.selectedIndex].value); //Calculate day of fertilization var v_FertDateMS = v_LastMensDate + (theForm.Cycle.options[theForm.Cycle.selectedIndex].value * 86400000) - 1209600000; var v_FertDateFormatted = new Date(v_FertDateMS) theForm.FertDate.value = months[v_FertDateFormatted.getMonth() + 1] + " " + v_FertDateFormatted.getDate() + ", " + y2k(v_FertDateFormatted.getYear()); //Calculate 4 week event var v_4weeksMS = v_FertDateMS + 1209600000; var v_4weeksFormatted = new Date(v_4weeksMS) theForm.EstDate4W.value = months[v_4weeksFormatted.getMonth() + 1] + " " + v_4weeksFormatted.getDate() + ", " + y2k(v_4weeksFormatted.getYear()); //Calculate 6-7 week event var v_6_7weeksMS = v_FertDateMS + 1879800000; var v_6_7weeksFormatted = new Date(v_6_7weeksMS) theForm.EstDate6_7W.value = months[v_6_7weeksFormatted.getMonth() + 1] + " " + v_6_7weeksFormatted.getDate() + ", " + y2k(v_6_7weeksFormatted.getYear()); //Calculate 9 week event var v_9weeksMS = v_FertDateMS + 2419200000; var v_9weeksFormatted = new Date(v_9weeksMS) theForm.EstDate9W.value = months[v_9weeksFormatted.getMonth() + 1] + " " + v_9weeksFormatted.getDate() + ", " + y2k(v_9weeksFormatted.getYear()); //Calculate 11-13 week event var v_11_13weeksMS = v_FertDateMS + 3698000000; var v_11_13weeksFormatted = new Date(v_11_13weeksMS) theForm.EstDate11_13W.value = months[v_11_13weeksFormatted.getMonth() + 1] + " " + v_11_13weeksFormatted.getDate() + ", " + y2k(v_11_13weeksFormatted.getYear()); //Calculate 15 week event var v_15weeksMS = v_FertDateMS + 6602000000; var v_15weeksFormatted = new Date(v_15weeksMS) theForm.EstDate15W.value = months[v_15weeksFormatted.getMonth() + 1] + " " + v_15weeksFormatted.getDate() + ", " + y2k(v_15weeksFormatted.getYear()); //Calculate 13 week 2 day event var v_13weeksMS = v_FertDateMS + 4230500000; var v_13weeksFormatted = new Date(v_13weeksMS) theForm.EstDate13W.value = months[v_13weeksFormatted.getMonth() + 1] + " " + v_13weeksFormatted.getDate() + ", " + y2k(v_13weeksFormatted.getYear()); //Calculate 15-20 week event var v_15_20weeksMS = v_FertDateMS + 4912600000; var v_15_20weeksFormatted = new Date(v_15_20weeksMS) theForm.EstDate15_20W.value = months[v_15_20weeksFormatted.getMonth() + 1] + " " + v_15_20weeksFormatted.getDate() + ", " + y2k(v_15_20weeksFormatted.getYear()); //Calculate 15-20 week event var v_15_20weeksMS = v_FertDateMS + 4912600000; var v_15_20weeksFormatted = new Date(v_15_20weeksMS) theForm.EstDate15_20W.value = months[v_15_20weeksFormatted.getMonth() + 1] + " " + v_15_20weeksFormatted.getDate() + ", " + y2k(v_15_20weeksFormatted.getYear()); //Calculate 18-20 week event var v_18_20weeksMS = v_FertDateMS + 9676800000; var v_18_20weeksFormatted = new Date(v_18_20weeksMS) theForm.EstDate18_20W.value = months[v_18_20weeksFormatted.getMonth() + 1] + " " + v_18_20weeksFormatted.getDate() + ", " + y2k(v_18_20weeksFormatted.getYear()); //Calculate 20-22 week event var v_20_22weeksMS = v_FertDateMS + 10354800000; var v_20_22weeksFormatted = new Date(v_20_22weeksMS) theForm.EstDate20_22W.value = months[v_20_22weeksFormatted.getMonth() + 1] + " " + v_20_22weeksFormatted.getDate() + ", " + y2k(v_20_22weeksFormatted.getYear()); //Calculate 23-24 week event var v_23_24weeksMS = v_FertDateMS + 12700800000; var v_23_24weeksFormatted = new Date(v_23_24weeksMS) theForm.EstDate23_24W.value = months[v_23_24weeksFormatted.getMonth() + 1] + " " + v_23_24weeksFormatted.getDate() + ", " + y2k(v_23_24weeksFormatted.getYear()); //Calculate 37 week event var v_37weeksMS = v_FertDateMS + 19401000000; var v_37weeksFormatted = new Date(v_37weeksMS) theForm.EstDate37W.value = months[v_37weeksFormatted.getMonth() + 1] + " " + v_37weeksFormatted.getDate() + ", " + y2k(v_37weeksFormatted.getYear()); //Calculate 40 week event var v_40weeksMS = v_FertDateMS + 22982400000; var v_40weeksFormatted = new Date(v_40weeksMS) theForm.EstDate40W.value = months[v_40weeksFormatted.getMonth() + 1] + " " + v_40weeksFormatted.getDate() + ", " + y2k(v_40weeksFormatted.getYear()); } // --> </script> <table border=0 cellpadding=3 cellspacing=0 width="100%"> </table> <p> <center> <b>Die wichtigen Termine in der Schwangerschaft auf einem Blick</b> <p>Bitte den ersten Tag der letzten Menstruation eingeben sowie die Zykluslänge und auf "Berechnen" klicken.</p> </center> <center> <form name="theForm"> <p> <table border="1" cellspacing="0" cellpadding="3"> <tr> <td>Der erste Tag der letzten Periode:</td> <td> <center> <select name="Date" size="1"> <option value="01">1. <option value="02">2. <option value="03">3. <option value="04">4. <option value="05">5. <option value="06">6. <option value="07">7. <option value="08">8. <option value="09">9. <option value="10">10. <option value="11">11. <option value="12">12. <option value="13">13. <option value="14">14. <option value="15">15. <option value="16">16. <option value="17">17. <option value="18">18. <option value="19">19. <option value="20">20. <option value="21">21. <option value="22">22. <option value="23">23. <option value="24">24. <option value="25">25. <option value="26">26. <option value="27">27. <option value="28">28. <option value="29">29. <option value="30">30. <option value="31">31. </select> <select name="Month" size="1"> <option value="0">Januar <option value="1">Februar <option value="2">März <option value="3">April <option value="4">Mai <option value="5">Juni <option value="6">Juli <option value="7">August <option value="8">September <option value="9">Oktober <option value="10">November <option value="11">Dezember </select> <input type="text" size="4" maxlength="4" name="Year" value="2000"> </center> </td> </tr> <tr> <td>Die Länge des Zyklus in Tagen</td> <td> <center> <select name="Cycle" size="1"> <option value="28">28 <option value="21">21 <option value="22">22 <option value="23">23 <option value="24">24 <option value="25">25 <option value="26">26 <option value="27">27 <option value="28">28 <option value="29">29 <option value="30">30 <option value="31">31 <option value="32">32 <option value="33">33 <option value="34">34 <option value="35">35 </select> </center> </td> </tr> </table> <p align="left"> <input type="button" value=">> Berechnen >>" onClick="PregEvent(theForm)" name="button"> </p> <p> </p> <table border="0" cellspacing="0" cellpadding="17"> <tr> <td>Eisprung und Befruchtung</td> <td> <input type="text" size="18" name="FertDate"> </td> </tr> <tr> <td>Schwangerschaftstest möglich</td> <td> <input type="text" size="18" name="EstDate4W"> </td> </tr> <tr> <td>Die ersten Organe werden gebildet</td> <td> <input type="text" size="18" name="EstDate6_7W"> </td> </tr> <tr> <td>erste Schwangerschafts-Vorsorgeuntersuchung</td> <td> <input type="text" size="18" name="EstDate9W"> </td> </tr> <tr> <td>Die fetalen Herztöne und der Embryo sind per Ultraschall erkennbar. </td> <td> <input type="text" size="18" name="EstDate11_13W"> </td> </tr> <tr> <td>Chorionzottenbiopsie möglich</td> <td> <input type="text" size="18" name="EstDate13W"> </td> </tr> <tr> <td>Die Bildung der wesentlichsten Hauptorgane ist abgeschlossen. Das Kind muß nun eigentlich nur noch wachsen :o)</td> <td> <input type="text" size="18" name="EstDate15_20W"> </td> </tr> <tr> <td>Fruchtwasseruntersuchung möglich</td> <td> <input type="text" size="18" name="EstDate15W"> </td> </tr> <tr> <td>anatomische Ultraschall-Untersuchung</td> <td> <input type="text" size="18" name="EstDate18_20W"> </td> </tr> <tr> <td>Ab jetzt spüren die meisten werdenden Mütter Ihr Kind zum ersten mal... </td> <td> <input type="text" size="18" name="EstDate20_22W"> </td> </tr> <tr> <td>Von nun an haben auch Frühgeborene wachsende Chancen zu überleben.</td> <td> <input type="text" size="18" name="EstDate23_24W"> </td> </tr> <tr> <td>Beginn des Mutterschutzes </td> <td> <input type="text" size="18" name="EstDate37W"> </td> </tr> <tr> <td><b>voraussichtlicher Entbindungstermin:</b><br> Allerdings halten sich nur etwa 5 Prozent der Babys an diesen Termin. Die meisten erblicken zwei Wochen davor oder danach das Licht der Welt</td> <td> <input type="text" size="18" name="EstDate40W"> </td> </tr> </table> <p> </form>
Kommentare zu
Schwangerschaftskalender
1 Kommentar(e) vorhanden / Anzeige der neuesten 5
am 29.10.2004 um 15:55 Uhr von Supersonic
Klasse Sache. Ich betreibe ein Family-Board, welches sich u.a. mit Schwangerschaft beschäf...
Alle Kommentare anzeigen
-
Kommentar hinzufügen
© PERL/CGI/
PHP
/JS/SCRIPT/unity.de 1998-2009 .::.
interaktiv.shop
.::.
CGI-Service
.::.
Kontakt
.::.
Impressum
Link: /javascript/scripts/javascript_0030_main.shtml .::. Aufrufe heute: 1 .::. Aufrufe gesamt: 9499