8月19

时间提示函数

Large | Medium | Small
10:59 ASP  From: Original
Reads(8717) | Comments(1) | Trackbacks(0)

1.

<%dim n
select case hour(now)
case "6","7","8","9","10","11" n="上午"
case "12" n="中午"
case "13","14","15","16","17" n="下午"
case "18","19","20","21","22","23" n="晚上"
case "0","1","2","3","4","5" n="凌晨"
end select
response.write n&amp;"好"%>

2.

<% if time < #12:00:00# and time >= #00:00:00# then %>
<img src="Pic/biaoqing/em14.gif" width="20" height="20" border="3" alt="哈哈:">
<font color="#004442F">哈楼啊!大飞问候你:早上好啊----</font>
<% elseif time <= #17:00:00# and time>= # 12:00:00# then %>
<img src="Pic/biaoqing/em17.gif" width="20" height="20" border="3" alt="">
<font color="#0000FF">哎!!下午好啊!现在都什么时候了你还在啊?</font>
<% elseif time <=#23:00:00# and time>#17:00:00# then %>
<img src="pic/biaoqing/em27.gif" width="20" height="20" border="0" alt="">
<font color="#FF0099#">我要走了!吃饭,睡觉了!拜拜!</font>
<% else %>
<font size="5" color="#66FFFF#"> <img src="pic/biaoqing/em03.gif" width="20" height="20" border="0" alt="pic">我走了!你慢慢聊啊!~
</font>
<% end if%>

3. <html>
<body >
<font color=blue>
<% if time<#12:00:00# and time>=#00:00:00# then %>
上午好!
<% elseif time<#19:00:00# and time>=#12:00:00# then %>
下午好!
<% else %>
晚上好!
<% end if %>
</font>
</body>
</html>  
4.

<SCRIPT language=JavaScript>

<!--
document.write("<left><b><font color=blue size=-1> ")
day = new Date()
hr = day.getHours()
if (hr ==1)
document.write("凌晨一点了,休息吧!")
if (hr ==2)
document.write("该休息了!")
if (hr ==3)
document.write("夜深人静!只有你还敲击鼠标!?")
if (hr ==4)
document.write("四点过了,你明天不上班???")
if (hr ==5)
document.write("该去晨运了!!!")
if (hr ==6)
document.write("你知道吗,现在国内网速最快!")
if (hr ==7)
document.write("早上好!祝你过得快乐!")
if ((hr ==8) &amp;#124;&amp;#124; (hr == 9) &amp;#124;&amp;#124; (hr ==10))
document.write("上午好!祝你今天愉快!")
if (hr ==11)
document.write("十一点过了,快下班了吧?")
if (hr ==12)
document.write("十二点过了,还不下班?")
if ((hr==13) &amp;#124;&amp;#124; (hr==14))
document.write("你不睡午觉?")
if ((hr==15) &amp;#124;&amp;#124; (hr==16) &amp;#124;&amp;#124; (hr==17))
document.write("下午好!")
if ((hr==18) &amp;#124;&amp;#124; (hr==19))
document.write("吃晚饭了吧?")
if ((hr==20) &amp;#124;&amp;#124; (hr==21) &amp;#124;&amp;#124; (hr==22))
document.write("今晚又在这玩电脑了,没节目?")
if (hr==23)
document.write("真是越玩越精神,不打算睡了?")
if (hr==0)
document.write("凌晨了,还不睡?")
document.write("</font></b></left>")
//--->

</SCRIPT>


Last modified by tommyhu on2009/08/19 11:00
tommyhuc.cn网友,来自
2013/01/04 17:48
这个帖子不错,有点意思!
tommyhu replied on 2013/01/04 18:54
感谢支持!
Pages: 1/1 First page 1 Final page
Add a comment
Emots
emotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemot
Enable HTML
Enable UBB
Enable Emots
Hidden
Remember

Nickname : 

Password(可不填) :  Optional

Site URI (可不填) : 

Email (可不填) :  [Register]