السلام عليكم ورحمه الله وبركاته
اقدم لكم كود رائع و مميز
كود عمر منتديات خاص فيك
المثال :
http://www.ba3ziz.com
في اخر صفحة المنتدى
يعني في قالب فوتر او footer
http://www.traidnt.net/vb/showthread.php?t=1185057goto=newpostاقدم لكم كود رائع و مميز
كود عمر منتديات خاص فيك
المثال :
http://www.ba3ziz.com
في اخر صفحة المنتدى
يعني في قالب فوتر او footer
PHP:
<p align="center"> <script language="JavaScript" type="text/javascript">
function setcountup(theday,themonth,theyear){
da=theday,mo=themonth,yr=theyear;
}
setcountup(27,09,2006);
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
function countup() {
var prefix="عمر منتديات قطوف العربية الآن : ";
var suffix="(منذ 27-09-2006)";
var today=new Date();
var todayy=today.getYear();
if (todayy < 1000) {
todayy+=1900; }
var todaym=today.getMonth();
var todayd=today.getDate();
var todayh=today.getHours();
var todaymin=today.getMinutes();
var todaysec=today.getSeconds();
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec;
paststring=montharray[mo-1]+" "+da+", "+yr;
dd=Date.parse(todaystring)-Date.parse(paststring);
dday=Math.floor(dd/(60*60*1000*24)*1);
dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);
dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);
if (document.all||document.getElementById) {
document.getElementById('countupie').innerHTML=prefix+dday+ " يوم, "+dhour+" ساعة, "+dmin+" دقيقة, و "+dsec+" ثانية "+suffix;
setTimeout("countup()",1000); }
}
</script> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td nowrap="nowrap" height="17" style="font-size:8pt; font-family:Tahoma; color:darkgrey; text-align:center; cursor:default;" id="countupie" title="نشأت المنتدى: 27-09-2006"><img src="http://q6ooof.com/vb/clear.gif" border="0" alt="" onload="countup();" /> </td> </tr> </table> </p> <div align="center">