حصرياً كود احسب عمرك بالتفصيل
كود احسب عمرك بالتفصيل الكود موجود مسبقاً
ولكن ليس منشور بالمدونات او المواقع اي حصري على إنسانية نملة
طريقة الاضافة
لوحة التحكم - الصفحات - صفحة جديدة - ابدل من تأليف الى HTML
ثم احذف الأكواد الموجودة واضف الكود التالي
<div dir="rtl" style="text-align: right;" trbidi="on"><div class="post-outer"><div id="posts"><div class="pcontents"><style type="text/css"> .result { width:100%; border-radius:5px; } </style> <script type="text/javascript"> var dat = new Date(); var curday = dat.getDate(); var curmon = dat.getMonth()+1; var curyear = dat.getFullYear(); function checkleapyear(datea) { if(datea.getYear()%4 == 0) { if(datea.getYear()% 10 != 0) { return true; } else { if(datea.getYear()% 400 == 0) return true; else return false; } } return false; } function DaysInMonth(Y, M) { with (new Date(Y, M, 1, 12)) { setDate(0); return getDate(); } } function datediff(date1, date2) { var y1 = date1.getFullYear(), m1 = date1.getMonth(), d1 = date1.getDate(), y2 = date2.getFullYear(), m2 = date2.getMonth(), d2 = date2.getDate(); if (d1 < d2) { m1--; d1 += DaysInMonth(y2, m2); } if (m1 < m2) { y1--; m1 += 12; } return [y1 - y2, m1 - m2, d1 - d2]; } function calage() { var calday = document.ageShow.mday.options[document.ageShow.mday.selectedIndex].value; var calmon = document.ageShow.mmonth.options[document.ageShow.mmonth.selectedIndex].value; var calyear = document.ageShow.myear.options[document.ageShow.myear.selectedIndex].value; if(curday == "" || curmon=="" || curyear=="" || calday=="" || calmon=="" || calyear=="") { alert("please fill all the values and click go -"); } else { var curd = new Date(curyear,curmon-1,curday); var cald = new Date(calyear,calmon-1,calday); var diff = Date.UTC(curyear,curmon,curday,0,0,0) - Date.UTC(calyear,calmon,calday,0,0,0); var dife = datediff(curd,cald); document.ageShow.age.value=dife[0]+" سنة, "+dife[1]+" شهر, و "+dife[2]+" يوم"; var monleft = (dife[0]*12)+dife[1]; var secleft = diff/1000/60; var hrsleft = secleft/60; var daysleft = hrsleft/24; var seconds=secleft*60; document.ageShow.months.value=monleft+" شهر منذ ولادتك"; document.ageShow.days.value=daysleft+" يوم منذ ولادتك"; document.ageShow.hours.value=hrsleft+" ساعة منذ ولادتك"; document.ageShow.min.value=secleft+" دقيقة منذ ولادتك"; document.ageShow.sec.value=seconds+" ثانية منذ ولادتك"; var as = parseInt(calyear)+dife[0]+1; var diff = Date.UTC(as,calmon,calday,0,0,0) - Date.UTC(curyear,curmon,curday,0,0,0); var datee = diff/1000/60/60/24; document.ageShow.nbday.value=datee+" يوم باقي لتاريخ ميلادك القادم"; } } function calage1(calday,calmon,calyear) { if(curday == "" || curmon=="" || curyear=="" || calday=="" || calmon=="" || calyear=="") { alert("please fill all the values and click go -"); } else { var curd = new Date(curyear,curmon-1,curday); var cald = new Date(calyear,calmon-1,calday); var diff = Date.UTC(curyear,curmon,curday,0,0,0) - Date.UTC(calyear,calmon,calday,0,0,0); var dife = datediff(curd,cald); document.ageShow.age.value=dife[0]+" سنة, "+dife[1]+" شهر, و "+dife[2]+" يوم"; var monleft = (dife[0]*12)+dife[1]; var secleft = diff/1000/60; var hrsleft = secleft/60; var daysleft = hrsleft/24; var seconds=secleft*60; document.ageShow.months.value=monleft+" شهر منذ ولادتك"; document.ageShow.days.value=daysleft+" يوم منذ ولادتك"; document.ageShow.hours.value=hrsleft+" ساعة منذ ولادتك"; document.ageShow.min.value=secleft+" دقيقة منذ ولادتك"; document.ageShow.sec.value=seconds+" ثانية منذ ولادتك"; var as = parseInt(calyear)+dife[0]+1; var diff = Date.UTC(as,calmon,calday,0,0,0) - Date.UTC(curyear,curmon,curday,0,0,0); var datee = diff/1000/60/60/24; document.ageShow.nbday.value=datee+" يوم باقي لتاريخ ميلادك القادم"; } } </script> <script type="text/javascript"> function intPart(floatNum){ if (floatNum< -0.0000001){ return Math.ceil(floatNum-0.0000001) } return Math.floor(floatNum+0.0000001) } function weekDay(wdn){ if(wdn==0){ return "الأثنين" } if(wdn==1){ return "الثلاثاء" } if(wdn==2){ return "الأربعاء" } if(wdn==3){ return "الخميس" } if(wdn==4){ return "الجمعة" } if(wdn==5){ return "السبت" } if(wdn==6){ return "الأحد" } return "" } function islToChr() { var e = document.getElementById("hday"); var ee = document.getElementById("hmonth"); var eee = document.getElementById("hyear"); var d = parseInt(e.options[e.selectedIndex].value); var m = parseInt(ee.options[ee.selectedIndex].value); var y = parseInt(eee.options[eee.selectedIndex].value); jd=intPart((11*y+3)/30)+354*y+30*m-intPart((m-1)/2)+d+1948440-386; if (jd> 2299160 ) { l=jd+68569; n=intPart((4*l)/146097); l=l-intPart((146097*n+3)/4); i=intPart((4000*(l+1))/1461001); l=l-intPart((1461*i)/4)+31; j=intPart((80*l)/2447); d=l-intPart((2447*j)/80); l=intPart(j/11); m=j+2-12*l; y=100*(n-49)+i+l; } else { j=jd+1402; k=intPart((j-1)/1461); l=j-1461*k; n=intPart((l-1)/365)-intPart(l/1461); i=l-365*n+30; j=intPart((80*i)/2447); d=i-intPart((2447*j)/80); i=intPart(j/11); m=j+2-12*i; y=4*k+n+i-4716; } calage1(d,m,y) } </script> </div></div></div><form name="ageShow"><input name="__token_timestamp__" type="hidden" value="1400515594" /><input name="__token_val__" type="hidden" value="953fb4eea31973139e0c47ea14cc6f82" /><input name="__token_timestamp__" type="hidden" value="1400324137" /><input name="__token_val__" type="hidden" value="11b938658af406640934180d1587b091" /> <br /><table style="border: 0px; text-align: center; width: 120px;"> <tbody><tr><td colspan="4"><h4 style="color: red;"><span style="color: red; font-family: "tahoma"; font-size: x-small;"><b><span lang="ar-sa"></span></b></span><b><span style="color: blue;"></span></b>اختر التاريخ بالهجري:</h4></td></tr><tr> <td style="width: 20px;"><select id="hday" name="hday" size="1"> <script type="text/javascript"> for(var j=1;j<31;j++) document.write("<option value="+j+">"+j+"</option>"); </script><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</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> </select> </td> <td style="width: 20px;"><select id="hmonth" name="hmonth" size="1"> <script type="text/javascript"> for(var j=1;j<13;j++) document.write("<option value="+j+">"+j+"</option>"); </script><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option> </select> </td> <td style="width: 30px;"><select id="hyear" name="hyear" size="1"> <script type="text/javascript"> for(var j=1370;j<1436;j++) document.write("<option value="+j+">"+j+"</option>"); </script><option value="1370">1370</option><option value="1371">1371</option><option value="1372">1372</option><option value="1373">1373</option><option value="1374">1374</option><option value="1375">1375</option><option value="1376">1376</option><option value="1377">1377</option><option value="1378">1378</option><option value="1379">1379</option><option value="1380">1380</option><option value="1381">1381</option><option value="1382">1382</option><option value="1383">1383</option><option value="1384">1384</option><option value="1385">1385</option><option value="1386">1386</option><option value="1387">1387</option><option value="1388">1388</option><option value="1389">1389</option><option value="1390">1390</option><option value="1391">1391</option><option value="1392">1392</option><option value="1393">1393</option><option value="1394">1394</option><option value="1395">1395</option><option value="1396">1396</option><option value="1397">1397</option><option value="1398">1398</option><option value="1399">1399</option><option value="1400">1400</option><option value="1401">1401</option><option value="1402">1402</option><option value="1403">1403</option><option value="1404">1404</option><option value="1405">1405</option><option value="1406">1406</option><option value="1407">1407</option><option value="1408">1408</option><option value="1409">1409</option><option value="1410">1410</option><option value="1411">1411</option><option value="1412">1412</option><option value="1413">1413</option><option value="1414">1414</option><option value="1415">1415</option><option value="1416">1416</option><option value="1417">1417</option><option value="1418">1418</option><option value="1419">1419</option><option value="1420">1420</option><option value="1421">1421</option><option value="1422">1422</option><option value="1423">1423</option><option value="1424">1424</option><option value="1425">1425</option><option value="1426">1426</option><option value="1427">1427</option><option value="1428">1428</option><option value="1429">1429</option><option value="1430">1430</option><option value="1431">1431</option><option value="1432">1432</option><option value="1433">1433</option><option value="1434">1434</option><option value="1435">1435</option> </select> </td> <td style="width: 30px;"><input onclick="islToChr()" style="background-color: #12687e; border: solid 1px #12687E; color: white; font-family: tahoma; padding: 3px;" type="button" value="احسب العمر بالهجري" /> </td> </tr><tr><td colspan="4"><h4 style="color: red;"><span style="color: red; font-family: "tahoma"; font-size: x-small;"><b><span lang="ar-sa"></span></b></span><b><span style="color: blue;"></span></b>أختر التاريخ بالميلادي:</h4></td></tr><tr> <td style="width: 20px;"><select name="mday" size="1"> <script type="text/javascript"> for(var j=1;j<32;j++) document.write("<option value="+j+">"+j+"</option>"); </script><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</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 style="width: 20px;"><select name="mmonth" size="1"> <script type="text/javascript"> for(var j=1;j<13;j++) document.write("<option value="+j+">"+j+"</option>"); </script><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option> </select> </td> <td style="width: 30px;"><select name="myear" size="1"> <script type="text/javascript"> for(var j=1930;j<2014;j++) document.write("<option value="+j+">"+j+"</option>"); </script><option value="1930">1930</option><option value="1931">1931</option><option value="1932">1932</option><option value="1933">1933</option><option value="1934">1934</option><option value="1935">1935</option><option value="1936">1936</option><option value="1937">1937</option><option value="1938">1938</option><option value="1939">1939</option><option value="1940">1940</option><option value="1941">1941</option><option value="1942">1942</option><option value="1943">1943</option><option value="1944">1944</option><option value="1945">1945</option><option value="1946">1946</option><option value="1947">1947</option><option value="1948">1948</option><option value="1949">1949</option><option value="1950">1950</option><option value="1951">1951</option><option value="1952">1952</option><option value="1953">1953</option><option value="1954">1954</option><option value="1955">1955</option><option value="1956">1956</option><option value="1957">1957</option><option value="1958">1958</option><option value="1959">1959</option><option value="1960">1960</option><option value="1961">1961</option><option value="1962">1962</option><option value="1963">1963</option><option value="1964">1964</option><option value="1965">1965</option><option value="1966">1966</option><option value="1967">1967</option><option value="1968">1968</option><option value="1969">1969</option><option value="1970">1970</option><option value="1971">1971</option><option value="1972">1972</option><option value="1973">1973</option><option value="1974">1974</option><option value="1975">1975</option><option value="1976">1976</option><option value="1977">1977</option><option value="1978">1978</option><option value="1979">1979</option><option value="1980">1980</option><option value="1981">1981</option><option value="1982">1982</option><option value="1983">1983</option><option value="1984">1984</option><option value="1985">1985</option><option value="1986">1986</option><option value="1987">1987</option><option value="1988">1988</option><option value="1989">1989</option><option value="1990">1990</option><option value="1991">1991</option><option value="1992">1992</option><option value="1993">1993</option><option value="1994">1994</option><option value="1995">1995</option><option value="1996">1996</option><option value="1997">1997</option><option value="1998">1998</option><option value="1999">1999</option><option value="2000">2000</option><option value="2001">2001</option><option value="2002">2002</option><option value="2003">2003</option><option value="2004">2004</option><option value="2005">2005</option><option value="2006">2006</option><option value="2007">2007</option><option value="2008">2008</option><option value="2009">2009</option><option value="2010">2010</option><option value="2011">2011</option><option value="2012">2012</option><option value="2013">2013</option> </select> </td> <td style="width: 30px;"><input onclick="calage()" style="background-color: #12687e; border: solid 1px #12687E; color: white; font-family: tahoma; padding: 3px;" type="button" value="احسب العمر بالميلادي" /> </td> </tr></tbody></table><table cellpadding="0" cellspacing="0" style="border: 0px; font-family: tahoma; text-align: center;"> <tbody><tr><td style="width: 30%;">النتيجة:</td><td><input class="result" name="age" readonly="readonly" size="38" type="text" /></td></tr><tr><td style="width: 30%;">بالأشهر:</td><td><input class="result" name="months" readonly="readonly" size="38" type="text" /></td></tr><tr><td style="width: 30%;">بالايام:</td><td><input class="result" name="days" readonly="readonly" size="38" type="text" /></td></tr><tr><td style="width: 30%;">بالساعات:</td><td><input class="result" name="hours" readonly="readonly" size="38" type="text" /></td></tr><tr><td style="width: 30%;">بالدقائق:</td><td><input class="result" name="min" readonly="readonly" size="38" type="text" /></td></tr><tr><td style="width: 30%;">بالثواني:</td><td><input class="result" name="sec" readonly="readonly" size="38" type="text" /></td></tr><tr><td style="width: 30%;">ميلادك القادم بعد:</td><td><input class="result" name="nbday" readonly="readonly" size="38" type="text" /></td></tr></tbody></table></form></div></div>
<iframe data-aa="1172950" src="//ad.a-ads.com/1172950?size=300x250" scrolling="no" style="width:300px; height:250px; border:0px; padding:0; overflow:hidden" allowtransparency="true"></iframe>
ادعمنا بالتعليق اسفل ولكي يصلك جديدنا اشترك بالمدونة
لا تقرأ وترحل .. شارك قول رأيك
0 تعليقات: