/*3*/ document.write('
\u73FE\u5728\u306E\u30A2\u30AF\u30BB\u30B9

2024/04/27 19:49:26
3\u540D\u304C\u95B2\u89A7\u4E2D

'); var xml,timer; function getXML(url){ xml = objXML(); timer = setInterval('timeout()',5000); xml.open('GET',url,true); xml.onreadystatechange = function(){ if(xml.readyState == 4){ clearInterval(timer); var cnt = xml.responseText.replace(/[\t\r\n]+/g,'').replace(/^.*\/\*(\d+)\*\/.*$/,'$1'); var time = getDateTime(); document.getElementById('nowUser').innerHTML = time.year + '/' + time.mon + '/' + time.day + ' ' + time.hour + ':' + time.min + ':' + time.sec + '
' + cnt + '\u540D\u304C\u95B2\u89A7\u4E2D'; return false; } }; xml.send(null); return false; } function objXML(){ try{ return new XMLHttpRequest(); }catch(e){ try{ return new ActiveXObject('Msxml2.XMLHTTP'); }catch(e){ try{ return new ActiveXObject('Microsoft.XMLHTTP'); }catch(e){ return null; } } } } function timeout(){ clearInterval(timer); xml.abort(); // alert('ERROR : Timeout.'); return false; } function getDateTime(){ var obj = new Object; var time = new Date(); obj.year = time.getFullYear(); obj.mon = setTwoLength(time.getMonth() + 1); obj.day = setTwoLength(time.getDate()); obj.hour = setTwoLength(time.getHours()); obj.min = setTwoLength(time.getMinutes()); obj.sec = setTwoLength(time.getSeconds()); return obj; } function setTwoLength(num){ if(Number(num) < 10) return '0' + String(num); return num; }