博客站长












在网页中加入随时间变化的问候语




<script language="javaScript">
<!--
now = new Date(),hour = now.getHours()
if(hour < 6){document.write("亲爱的管理员,凌晨好!&nbsp; &nbsp; ")}
else if (hour < 9){document.write("亲爱的管理员,早上好!&nbsp; &nbsp; ")}
else if (hour < 12){document.write("亲爱的管理员,上午好!&nbsp; &nbsp; ")}
else if (hour < 14){document.write("亲爱的管理员,中午好!&nbsp; &nbsp; ")}
else if (hour < 17){document.write("亲爱的管理员,下午好!&nbsp; &nbsp; ")}
else if (hour < 19){document.write("亲爱的管理员,傍晚好!&nbsp; &nbsp; ")}
else if (hour < 22){document.write("亲爱的管理员,晚上好!&nbsp; &nbsp; ")}
else {document.write("亲爱的管理员,夜里好!&nbsp; &nbsp; ")}
// -->
</script>

o℃啲永恒ツ 发表于 2007-5-23 16:51:00 阅读全文 | 回复(0) | 引用通告 | 编辑





发表评论:

    大名:
    密码: (游客无须输入密码)
    主页:
    标题:



:: 最近发表::

:: 最近回复 ::

:: 访客留言::

:: 注册信息::
:: 文章搜索::
:: 博客信息::

:: 友情链接::




Powered by Oblog.