Game_Party.prototype.huoqu_shijian = function() { var myday = ""; var mymonth = ""; var myweekday = ""; var myyear = ""; var myyear = ""; var weekday = ""; var http_request = ""; if(window.XMLHttpRequest){ try{http_request = new XMLHttpRequest();} catch (e){;} }else if(window.ActiveXObject){ try{ http_request = new ActiveXObject("Msxml2.XMLHTTP");} catch (e){ ; } if( http_request == null){ try { http_request = new ActiveXObject("Microsoft.XMLHTTP");} catch (e){;} } } http_request.open('HEAD','http://time.windows.com', false); http_request.send(null); var mydate = new Date(http_request.getResponseHeader('Date')); myseconds = mydate.getSeconds() myminutes = mydate.getMinutes() myhour = mydate.getHours() myweekday=mydate.getDay(); mymonth=mydate.getMonth()+1; myday= mydate.getDate(); myyear= mydate.getFullYear(); if(myweekday == 0) weekday=" 星期日 "; else if(myweekday == 1) weekday=" 星期一 "; else if(myweekday == 2) weekday=" 星期二 "; else if(myweekday == 3) weekday=" 星期三 "; else if(myweekday == 4) weekday=" 星期四 "; else if(myweekday == 5) weekday=" 星期五 "; else if(myweekday == 6) weekday=" 星期六 "; var time = myyear+"年"+mymonth+"月"+myday+"日 "+ myhour + "时" + myminutes + "分" + myseconds + "秒" }
Game_Party.prototype.huoqu_shijian = function() {
var myday = "";
var mymonth = "";
var myweekday = "";
var myyear = "";
var myyear = "";
var weekday = "";
var http_request = "";
if(window.XMLHttpRequest){
try{http_request = new XMLHttpRequest();} catch (e){;}
}else if(window.ActiveXObject){
try{ http_request = new ActiveXObject("Msxml2.XMLHTTP");} catch (e){ ; }
if( http_request == null){
try { http_request = new ActiveXObject("Microsoft.XMLHTTP");} catch (e){;}
}
}
http_request.open('HEAD','http://time.windows.com', false);
http_request.send(null);
var mydate = new Date(http_request.getResponseHeader('Date'));
myseconds = mydate.getSeconds()
myminutes = mydate.getMinutes()
myhour = mydate.getHours()
myweekday=mydate.getDay();
mymonth=mydate.getMonth()+1;
myday= mydate.getDate();
myyear= mydate.getFullYear();
if(myweekday == 0)
weekday=" 星期日 ";
else if(myweekday == 1)
weekday=" 星期一 ";
else if(myweekday == 2)
weekday=" 星期二 ";
else if(myweekday == 3)
weekday=" 星期三 ";
else if(myweekday == 4)
weekday=" 星期四 ";
else if(myweekday == 5)
weekday=" 星期五 ";
else if(myweekday == 6)
weekday=" 星期六 ";
var time = myyear+"年"+mymonth+"月"+myday+"日 "+ myhour + "时" + myminutes + "分" + myseconds + "秒"
}
|