nowDate = new Date();
date1 = nowDate.getYear()+1900;
date3 = nowDate.getDate();
myDate = new Date();
myDate = myDate.getMonth();
dateArray = new Array("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12");
date2 = dateArray[mydate];
ymd = date1+"/"+date2+"/"+date3;
nowDate = new Date();
hour = nowDate.getHours();
if (hour>12) {
if (hour<22) {
hour = "PM 0"+(hour-Number(12));
} else {
hour = "PM "+(hour-Number(12));
}
} else if (hour<12) {
if (hour<10) {
hour = ("AM 0"+hour);
} else {
hour = ("AM "+hour);
}
} else {
hour = "PM "+hour;
}
minutes = nowDate.getMinutes();
if (minutes<10) {
minutes = "0"+minutes;
}
sec = nowDate.getSeconds();
if (sec<10) {
sec = "0"+sec;
}
alltime = hour+":"+minutes+":"+sec;
gotoAndPlay(1);
歡迎光臨 鐵之狂傲 (https://gamez.com.tw/) |