92 879 248 365 calories brûlées | 2 709 457 inscrites |
setInterval("UpdateNums()",500);
var vDivCal = document.getElementById? document.getElementById("div_calories") : document.all.div_calories;
var iDivCal = 92878479927.2021;
function UpdateNums()
{
iDivCal = iDivCal + 649.5674566777;
vDivCal.innerHTML = addSpace(parseInt(iDivCal));
}
function addSpace(nStr)
{
nStr += '';
x = nStr.split(',');
x1 = x[0];
x2 = x.length > 1 ? ',' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + ' ' + '$2');
}
return x1 + x2;
} |
|
|
var timeout=200;var closetimer=0;var ddmenuitem=0;function mopen(id){mcancelclosetime();if(ddmenuitem)ddmenuitem.style.visibility='hidden';ddmenuitem=document.getElementById(id);ddmenuitem.style.visibility='visible'}function mclose(){if(ddmenuitem)ddmenuitem.style.visibility='hidden'}function mclosetime(){closetimer=window.setTimeout(mclose,timeout)}function mcancelclosetime(){if(closetimer){window.clearTimeout(closetimer);closetimer=null}}
AttachEvent(window,"click",mclose);