引用 | 編輯
水玲瓏
2005-02-25 15:32 |
樓主
|
||
x0
定時問後語範例點我以下為定時問後語語法 內容可自行更改 複製程式 <script language="JavaScript"> <!-- document.write("<center><marquee behavior=\"alternate\" style=font-size:10pt;color:#ff00ff width=\"420\" height=\"5\">") var now=new Date() var hr hr=now.getHours() if (hr==0) {document.write("深夜 12 點多了,網路塞車,諸多不便敬請原諒?")} if (hr==1) {document.write("睏!深夜 1 點多了!?還在撐嗎?")} if (hr==2) {document.write("愛睏?深夜 2 點多了!你是吃什麼補藥這麼神勇!")} if (hr==3) {document.write("咳...深夜 3 點多了!您真是超級標準的夜貓子啊!")} if (hr==4) {document.write("哇?凌晨 4 點多了!上線品質不錯吧?")} if (hr==5) {document.write("早啊!清晨 5 點多了~早起的鳥兒一定有虫吃")} if (hr==6) {document.write("早安!清晨 6 點多了!還沒刷牙洗臉就上網?快去吧!!")} if (hr==7) {document.write("呷飽昧! 早上 7 點多了!不去上班上課了嗎?")} if (hr==8) {document.write("早上 8 點多了!你還沒上班上課還再上網ㄚ!")} if (hr==9) {document.write("上午 9 點多了!精神正佳?學做網頁最好!")} if (hr==10) {document.write("上午 10 點多了!你正聚精會神的上網?")} if (hr==11) {document.write("嗯!上午 11 點多了!肚子是否有點餓餓呢?")} if (hr==12) {document.write("午安!中午 12 點多了!吃午飯了嗎?不要餓壞了喔!")} if (hr==13) {document.write("您好!現在是下午 1 點多了!想不想要睡個午覺呀?")} if (hr==14) {document.write("嘿!都下午 2 點多了!繼續來找你要的資料吧!")} if (hr==15) {document.write("哈!下午 3 點多了!喝下午茶時間到囉!動一動吧!")} if (hr==16) {document.write("嗯..已經下午 4 點多了!歡迎來到 MyChat 數位男女,準備要開始了嗎?")} if (hr==17) {document.write("傍晚 5 點多了!剛下班你就迫不及待的來看我?")} if (hr==18) {document.write("已經傍晚 6 點多了!肚子餓餓了嗎?邊吃飯邊逛逛吧!")} if (hr==19) {document.write("晚上 7 點多了!開始來...很好將來必有大好前途!")} if (hr==20) {document.write("晚安!現在是 8 點多了!唷~ MyChat 數位男女 比 8 點檔還好看嗎?")} if (hr==21) {document.write("嗨!晚上 9 點多了!卡緊進來看看...^_^")} if (hr==22) {document.write("現在是晚上 10 點多了!上線品質還好吧!晚安唷!")} if (hr==23) {document.write("睏?!已經晚上 11 點多了!一天過了又一天啊~.....")} document.write("</font></marquee></center>") // --> </script> x0
|