كود يعطيك
سكان العالم في تزايد مستمر
و
عدد اللذين ابصروا الدنيا منذ فتحك لهذه الصفحة
=========
الكود
الرمز:
<BODY onload=maind()>
<SCRIPT language=JavaScript>
function maind()
{
startdate = new Date()
now(startdate.getYear(),startdate.getMonth(),startdate.getDate(),startdate.getHours(),startdate.getMinutes(),startdate.getSeconds())
}
function ChangeValue(number,pv)
{
numberstring =""
var j=0
var i=0
while (number > 1)
{
numberstring = (Math.round(number-0.5) % 10) + numberstring
number= number / 10
j++
if (number > 1 && j==3) {
numberstring = "." + numberstring
j=0}
i++
}
numberstring= " " + numberstring+",00"
if (pv==1) { document.schuld.schuld.value = numberstring }
if (pv==2) {document.newnow.newnow.value = numberstring}
}
function now(year,month,date,hours,minutes,seconds)
{
startdatum = new Date(year,month,date,hours,minutes,seconds)
var now = 5700000000.0
var now2 = 5790000000.0
var groeipercentage = (now2 - now) / now *100
var groeiperseconde = (now * (groeipercentage/100))/365.0/24.0/60.0/60.0
nu = new Date ()
schuldstartdatum = new Date (96,1,1)
secondenoppagina = (nu.getTime() - startdatum.getTime())/1000
totaleschuld= (nu.getTime() - schuldstartdatum.getTime())/1000*groeiperseconde + now
ChangeValue(totaleschuld,1);
ChangeValue(secondenoppagina*groeiperseconde,2);
timerID = setTimeout("now(startdatum.getYear(),startdatum.getMonth(),startdatum.getDate(),startdatum.getHours(),startdatum.getMinutes(),startdatum.getSeconds())",200)
}
</SCRIPT><CENTER><font face="Tahoma" color="#0000FF">سكان العالم في
تزايد مستمر<BR>
</font>
<FORM name=schuld><font face="Tahoma"><INPUT name=schuld size=25> </font> </FORM><font face="Tahoma"><BR><font color="#0000FF">عدد
اللذين ابصروا الدنيا منذ فتحك لهذه الصفحة<BR>
</font></font>
<FORM name=newnow><INPUT name=newnow size=25>
</FORM></CENTER>
<HR>
سكان العالم في تزايد مستمر
و
عدد اللذين ابصروا الدنيا منذ فتحك لهذه الصفحة
=========
الكود
الرمز:
<BODY onload=maind()>
<SCRIPT language=JavaScript>
function maind()
{
startdate = new Date()
now(startdate.getYear(),startdate.getMonth(),startdate.getDate(),startdate.getHours(),startdate.getMinutes(),startdate.getSeconds())
}
function ChangeValue(number,pv)
{
numberstring =""
var j=0
var i=0
while (number > 1)
{
numberstring = (Math.round(number-0.5) % 10) + numberstring
number= number / 10
j++
if (number > 1 && j==3) {
numberstring = "." + numberstring
j=0}
i++
}
numberstring= " " + numberstring+",00"
if (pv==1) { document.schuld.schuld.value = numberstring }
if (pv==2) {document.newnow.newnow.value = numberstring}
}
function now(year,month,date,hours,minutes,seconds)
{
startdatum = new Date(year,month,date,hours,minutes,seconds)
var now = 5700000000.0
var now2 = 5790000000.0
var groeipercentage = (now2 - now) / now *100
var groeiperseconde = (now * (groeipercentage/100))/365.0/24.0/60.0/60.0
nu = new Date ()
schuldstartdatum = new Date (96,1,1)
secondenoppagina = (nu.getTime() - startdatum.getTime())/1000
totaleschuld= (nu.getTime() - schuldstartdatum.getTime())/1000*groeiperseconde + now
ChangeValue(totaleschuld,1);
ChangeValue(secondenoppagina*groeiperseconde,2);
timerID = setTimeout("now(startdatum.getYear(),startdatum.getMonth(),startdatum.getDate(),startdatum.getHours(),startdatum.getMinutes(),startdatum.getSeconds())",200)
}
</SCRIPT><CENTER><font face="Tahoma" color="#0000FF">سكان العالم في
تزايد مستمر<BR>
</font>
<FORM name=schuld><font face="Tahoma"><INPUT name=schuld size=25> </font> </FORM><font face="Tahoma"><BR><font color="#0000FF">عدد
اللذين ابصروا الدنيا منذ فتحك لهذه الصفحة<BR>
</font></font>
<FORM name=newnow><INPUT name=newnow size=25>
</FORM></CENTER>
<HR>