?? hello.js
字號:
<!--
today=new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六");
document.write(
"<font color=#3399ff style='font-size:9pt;font-family: 宋體'> ",
today.getYear(),"年",
today.getMonth()+1,"月",
today.getDate(),"日 ",
d[today.getDay()+1]," ",
"</font>" );
now = new Date(),hour = now.getHours()
if(hour < 6){document.write ( "<font color=#3399ff style='font-size:9pt;font-family: 宋體'> ", "起得早,身體好!","</font>") }
else if (hour < 8){document.write ( "<font color=#3399ff style='font-size:9pt;font-family: 宋體'>", "全新的一天!","</font>") }
else if (hour < 12){document.write ( "<font color=#3399ff style='font-size:9pt;font-family: 宋體'>", "早上好!","</font>") }
else if (hour < 13){document.write ("<font color=#3399ff style='font-size:9pt;font-family: 宋體'>","現在是中午午休時間!","</font>") }
else if (hour < 18){document.write ("<font color=#3399ff style='font-size:9pt;font-family: 宋體'>","下午好!","</font>")}
else if (hour < 22){document.write ( "<font color=#3399ff style='font-size:9pt;font-family: 宋體'>","晚上好!","</font>") }
else if (hour < 24){document.write ("<font color=#3399ff style='font-size:9pt;font-family: 宋體'>","夜深了! 要注意身體! 祝你做個好夢!","</font>")}
-->
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -