|
| | #1 | ||
| كتاب ملتقى الحوار العربي ![]() ![]() تاريخ التسجيل: Sep 2000
المشاركات: 1,298
عدد الاستياءات التي ضربها: 1
الاستياءات: 2
التحيات التي قدمها : 33
التحيات: 130
| <!-- TWO STEPS TO INSTALL PREGNANCY CALCULATOR: 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Ronnie T. Moore, Editor --> <!-- Web Site: The JavaScript Source --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function isValidDate(dateStr) { // Date validation function courtesty of // Sandeep V. Tamhankar (stamhankar@hotmail.com) --> // Checks for the following valid date formats: // MM/DD/YY MM/DD/YYYY MM-DD-YY MM-DD-YYYY var datePat = /^(\d{1,2})(\/|-)(\d{1,2})\2(\d{4})$/; // requires 4 digit year var matchArray = dateStr.match(datePat); // is the format ok? if (matchArray == null) { alert("Date is not in a valid format.") return false; } month = matchArray[1]; // parse date into variables day = matchArray[3]; year = matchArray[4]; if (month < 1 || month > 12) { // check month range alert("Month must be between 1 and 12."); return false; } if (day < 1 || day > 31) { alert("Day must be between 1 and 31."); return false; } if ((month==4 || month==6 || month==9 || month==11) && day==31) { alert("Month "+month+" doesn't have 31 days!") return false; } if (month == 2) { // check for february 29th var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)); if (day>29 || (day==29 && !isleap)) { alert("February " + year + " doesn't have " + day + " days!"); return false; } } return true; } function dispDate(dateObj) { month = dateObj.getMonth()+1; month = (month < 10) ? "0" + month : month; day = dateObj.getDate(); day = (day < 10) ? "0" + day : day; year = dateObj.getYear(); if (year < 2000) year += 1900; return (month + "/" + day + "/" + year); } function pregnancyCalc(pregform) { menstrual = new Date(); // creates new date objects ovulation = new Date(); duedate = new Date(); today = new Date(); cycle = 0, luteal = 0; // sets variables to invalid state ==> 0 if (isValidDate(pregform.menstrual.value)) { // Validates menstual date menstrualinput = new Date(pregform.menstrual.value); menstrual.setTime(menstrualinput.getTime()) } else return false; // otherwise exits cycle = (pregform.cycle.value == "" ? 28 : pregform.cycle.value); // defaults to 28 // validates cycle range, from 22 to 45 if (pregform.cycle.value != "" && (pregform.cycle.value < 22 || pregform.cycle.value > 45)) { alert("Your cycle length is either too short or too long for \n" + "calculations to be very accurate! We will still try to \n" + "complete the calculation with the figure you entered. "); } luteal = (pregform.luteal.value == "" ? 14 : pregform.luteal.value); // defaults to 14 // validates luteal range, from 9 to 16 if (pregform.luteal.value != "" && (pregform.luteal.value < 9 || pregform.luteal.value > 16)) { alert("Your luteal phase length is either too short or too long for \n" + "calculations to be very accurate! We will still try to complete \n" + "the calculation with the figure you entered. "); } // sets ovulation date to menstrual date + cycle days - luteal days // the '*86400000' is necessary because date objects track time // in milliseconds; 86400000 milliseconds equals one day ovulation.setTime(menstrual.getTime() + (cycle*86400000) - (luteal*86400000)); pregform.conception.value = dispDate(ovulation); // sets due date to ovulation date plus 266 days duedate.setTime(ovulation.getTime() + 266*86400000); pregform.duedate.value = dispDate(duedate); // sets fetal age to 14 + 266 (pregnancy time) - time left var fetalage = 14 + 266 - ((duedate - today) / 86400000); weeks = parseInt(fetalage / 7); // sets weeks to whole number of weeks days = Math.floor(fetalage % 7); // sets days to the whole number remainder // fetal age message, automatically includes 's' on week and day if necessary fetalage = weeks + " week" + (weeks > 1 ? "s" : "") + ", " + days + " days"; pregform.fetalage.value = fetalage; return false; // form should never submit, returns false } // End --> </script> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <center> <form onSubmit="return pregnancyCalc(this);"> <table> <tr><td> <pre> <FONT face="MS Sans Serif" color=#000080 size=2>تاريخ فترة آخر حيض ( الدورة الشهرية ) بالدقة من فضلك مثال على حسب الترتيب 2001/4/1 تاريخ ميلادي (سنة/يوم/شهر ) </FONT>: <input type=text name=menstrual value="" size=10 maxlength=10> اتركهاكماهي<input type=text name=cycle value="" size=3 maxlength=3> (22 to 45) (defaults to 28) اتركه كما هي<input type=text name=luteal value="" size=3 maxlength=3> (9 to 16) (defaults to 14) <center><input type=submit value="احسب!"></center> التاريخ المتوقع للحمل: <input type=text name=conception value="" size=20> التاريخ المتوقع للولاده: <input type=text name=duedate value="" size=20> العمر المتوقع للجنين: <input type=text name=fetalage value="" size=20> </pre> </td></tr> </table> </form> </center> <p><center> <font face="arial, helvetica" size="-2"><br> </font> <font face="arial, helvetica" size="-2"> </font><font face="arial, helvetica" size="6"><b> اشراف الدكتور انيس </b></font><font face="arial, helvetica" size="-2"> <a href="http://javascriptsource.com"></a></font> </center><p> <!-- Script Size: 5.17 KB --> <embed src=http://alwan.virtualave.net/music/madi/arabic/baladi.mid autostart="true" loop="false" width="128" height="128"> | ||
| | |
| | #2 | ||
| كتاب ملتقى الحوار العربي ![]() ![]() تاريخ التسجيل: Sep 2000
المشاركات: 1,298
عدد الاستياءات التي ضربها: 1
الاستياءات: 2
التحيات التي قدمها : 33
التحيات: 130
| غريب انه ما يعمل هنا انا مجربه على الفرونت بيج وهو يعمل المهم هذا هو الكود جربوه على الفرونت بيج <textarea rows="8" name="txt" cols="52" style="color: #000080; background-color: #DDEEFF; border-style: solid"> <br> <!-- TWO STEPS TO INSTALL PREGNANCY CALCULATOR: 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Ronnie T. Moore, Editor --> <!-- Web Site: The JavaScript Source --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function isValidDate(dateStr) { // Date validation function courtesty of // Sandeep V. Tamhankar (stamhankar@hotmail.com) --> // Checks for the following valid date formats: // MM/DD/YY MM/DD/YYYY MM-DD-YY MM-DD-YYYY var datePat = /^(\d{1,2})(\/|-)(\d{1,2})\2(\d{4})$/; // requires 4 digit year var matchArray = dateStr.match(datePat); // is the format ok? if (matchArray == null) { alert("Date is not in a valid format.") return false; } month = matchArray[1]; // parse date into variables day = matchArray[3]; year = matchArray[4]; if (month < 1 || month > 12) { // check month range alert("Month must be between 1 and 12."); return false; } if (day < 1 || day > 31) { alert("Day must be between 1 and 31."); return false; } if ((month==4 || month==6 || month==9 || month==11) && day==31) { alert("Month "+month+" doesn't have 31 days!") return false; } if (month == 2) { // check for february 29th var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)); if (day>29 || (day==29 && !isleap)) { alert("February " + year + " doesn't have " + day + " days!"); return false; } } return true; } function dispDate(dateObj) { month = dateObj.getMonth()+1; month = (month < 10) ? "0" + month : month; day = dateObj.getDate(); day = (day < 10) ? "0" + day : day; year = dateObj.getYear(); if (year < 2000) year += 1900; return (month + "/" + day + "/" + year); } function pregnancyCalc(pregform) { menstrual = new Date(); // creates new date objects ovulation = new Date(); duedate = new Date(); today = new Date(); cycle = 0, luteal = 0; // sets variables to invalid state ==> 0 if (isValidDate(pregform.menstrual.value)) { // Validates menstual date menstrualinput = new Date(pregform.menstrual.value); menstrual.setTime(menstrualinput.getTime()) } else return false; // otherwise exits cycle = (pregform.cycle.value == "" ? 28 : pregform.cycle.value); // defaults to 28 // validates cycle range, from 22 to 45 if (pregform.cycle.value != "" && (pregform.cycle.value < 22 || pregform.cycle.value > 45)) { alert("Your cycle length is either too short or too long for \n" + "calculations to be very accurate! We will still try to \n" + "complete the calculation with the figure you entered. "); } luteal = (pregform.luteal.value == "" ? 14 : pregform.luteal.value); // defaults to 14 // validates luteal range, from 9 to 16 if (pregform.luteal.value != "" && (pregform.luteal.value < 9 || pregform.luteal.value > 16)) { alert("Your luteal phase length is either too short or too long for \n" + "calculations to be very accurate! We will still try to complete \n" + "the calculation with the figure you entered. "); } // sets ovulation date to menstrual date + cycle days - luteal days // the '*86400000' is necessary because date objects track time // in milliseconds; 86400000 milliseconds equals one day ovulation.setTime(menstrual.getTime() + (cycle*86400000) - (luteal*86400000)); pregform.conception.value = dispDate(ovulation); // sets due date to ovulation date plus 266 days duedate.setTime(ovulation.getTime() + 266*86400000); pregform.duedate.value = dispDate(duedate); // sets fetal age to 14 + 266 (pregnancy time) - time left var fetalage = 14 + 266 - ((duedate - today) / 86400000); weeks = parseInt(fetalage / 7); // sets weeks to whole number of weeks days = Math.floor(fetalage % 7); // sets days to the whole number remainder // fetal age message, automatically includes 's' on week and day if necessary fetalage = weeks + " week" + (weeks > 1 ? "s" : "") + ", " + days + " days"; pregform.fetalage.value = fetalage; return false; // form should never submit, returns false } // End --> </script> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <center> <form onSubmit="return pregnancyCalc(this);"> <table> <tr><td> <pre> Last Menstrual Period: <input type=text name=menstrual value="" size=10 maxlength=10> (MM/DD/YYYY format) Average Length of Cycles: <input type=text name=cycle value="" size=3 maxlength=3> (22 to 45) (defaults to 28) Average Luteal Phase Length: <input type=text name=luteal value="" size=3 maxlength=3> (9 to 16) (defaults to 14) <center><input type=submit value="Calculate!"></center> Estimated Conception: <input type=text name=conception value="" size=20> Estimated Due Date: <input type=text name=duedate value="" size=20> Estimated Fetal Age: <input type=text name=fetalage value="" size=20> </pre> </td></tr> </table> </form> </center> <p><center> <font face="arial, helvetica" size="-2">Free JavaScripts provided<br> by <a href="http://javascriptsource.com">The JavaScript Source</a></font> </center><p> <!-- Script Size: 5.17 KB --></textarea> | ||
| | |
| | #3 | ||
| عضو مميز ![]() تاريخ التسجيل: Sep 2000
المشاركات: 915
عدد الاستياءات التي ضربها: 34
الاستياءات: 5
التحيات التي قدمها : 280
التحيات: 393
| اخب انيس الونيس : الكود يحوي على java Script التي هي ممنوعة في اغلب المنتديــات !!! لمــا قد تحتويه من تعليمات خطيرة قد تضر بالموقع كاملا ..... | ||
| | |
| | #5 | ||
| كتاب ملتقى الحوار العربي ![]() ![]() تاريخ التسجيل: Sep 2000
المشاركات: 1,298
عدد الاستياءات التي ضربها: 1
الاستياءات: 2
التحيات التي قدمها : 33
التحيات: 130
| هلا اخوي الهشامي هلا بك ايه ممكن كلامك معقول وبعدين ليه اسف على المداخله خش اي وقت نحن اخوان انت تنور الموضوع يا هشامي بومحكم جربته في موقع شخصي وكان يعمل المهم يا بومحكم جربو في الفرونت بيج شوفه يعمل هناك 0 | ||
| | |
| | #6 | ||||
| كاتب جديد تاريخ التسجيل: Jun 2001
المشاركات: 7
عدد الاستياءات التي ضربها: 0
الاستياءات: 0
التحيات التي قدمها : 0
التحيات: 0
| يمكنك الوصول للبرنامج المذكور أعلاه أول المشابه له ولكن بتفصيل أكبر عن طريق الوصلة التالية برنامج الأم الحامل أو موقع العناية بالأم والطفل موقع العناية بالأم والطفل عسى ان تكون الوصلات مفيدة وشكرا العنكبوت
| ||||
| | |
| | #7 | ||||
| كاتب جديد تاريخ التسجيل: Jun 2001
المشاركات: 7
عدد الاستياءات التي ضربها: 0
الاستياءات: 0
التحيات التي قدمها : 0
التحيات: 0
|
| ||||
| | |
![]() |
| مواقع النشر (المفضلة) |
| أدوات الموضوع | |
| |
المواضيع المتشابهه | ||||
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
| أختي العضوة .. هل انتي حامل ... اكتشفي بنفسك بدون زيارة الطبيب | توتولوتو | ساحة الصداقة والفكاهة | 80 | 03-11-2008 09:20 AM |
| انتي مثل صرااخ الجنين ما ينتقد | احساس جدة | الساحة الأدبية الثقافية | 9 | 05-03-2002 08:24 AM |
| سيدتي هل انتي حامل وفي اي شهر وكم عمر الجنين 000 الجواب عند الدكتور الونيس | نقراشي باشا | الساحة المفتوحة | 5 | 05-06-2001 06:01 PM |
| سيدتي هل انتي حامل وفي اي شهر وكم عمر الجنين 000 الجواب عند الدكتور الونيس | نقراشي باشا | الساحة المفتوحة | 5 | 04-06-2001 04:10 AM |
| الونيس وموقفه من الجنس الاخر ( سيدتي ) | نقراشي باشا | الساحة الأدبية الثقافية | 3 | 08-04-2001 09:32 PM |
| ||||
| جميع الآراء والأفكار المنشورة تقع تحت مسئولية
كاتبها ولا تعبر بأي حال من الأحوال عن وجهة نظر إدارة الموقع
Powered by vBulletin® Version 3.7.0 Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. SEO by vBSEO 3.1.0 vB.Sponsors ThreadBit by AtaBB
جميع الحقوق محفوظة لشبكة حضرموت العربية 1999 - 2004م
Vbulletin style created by vBcustomized.com Copyright © 2007 -2009 vBcustomized.com |