>
设为首页
>
收藏本站
>
最新电影
首页
运营资讯
今日英语
图形图像
计算机技术
Asp编程
网站结构化
资源共享
休闲娱乐
访问新站
您现在的位置:
首页
=>
后台技术
=>
脚本特效
=>
时间日期
订阅本栏目
随时间变化显示不同的提示
时间: 2007-10-04 22:42:53 阅读次数:2305
<html> <head> <title>网页特效|www.ffasp.com 飞飞Asp乐园|---随时间变化提示</title> <style type="text/css"> <!-- body { font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 0px; margin-right: 0px} A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none } A:hover { COLOR: red; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline } a:active { font: 9pt "宋体"; cursor: hand; color: #FF0033 } --> </style> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <body> <br> <br> <center><font color=red face="隶书" size=6>随时间变化提示</font></center> <br> <br><center> <table border=0 bordercolor=blue borderlight=green style="border-collapse: collapse" cellpadding="0" cellspacing="0"> <tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>下面框中为脚本显示区</strong></font></td></tr> <tr><td align=center><SCRIPT language="JavaScript"> <!----------- var enabled = 0; today = new Date(); var day; var date; if(today.getDay()==0) day = "星期日" if(today.getDay()==1) day = "星期一" if(today.getDay()==2) day = "星期二" if(today.getDay()==3) day = "星期三" if(today.getDay()==4) day = "星期四" if(today.getDay()==5) day = "星期五" if(today.getDay()==6) day = "星期六" document.fgColor = " FF0072"; date1 = "<font size=2 color=red>" + (today.getYear()) + "年" + (today.getMonth() + 1 ) + "月" + today.getDate() + "日 " + "</font>"; date2 = "<font size=2 color=red>" + day + "</font>"; document.write("<center>" + date1.fontsize(3) + date2.fontsize(3) + "</center>"); //-----> </SCRIPT> <SCRIPT language="JavaScript"> <!-- document.write("<center><font color=#0066ff 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) || (hr == 9) || (hr ==10)) document.write("上午好!今天你看上去好精神哦!") if (hr ==11) document.write("十一点过了,快下班了吧?") if (hr ==12) document.write("十二点过了,还不下班?") if ((hr==13) || (hr==14)) document.write("你不睡午觉?") if ((hr==15) || (hr==16) || (hr==17)) document.write("下午好!") if ((hr==18) || (hr==19)) document.write("吃晚饭了吧?") if ((hr==20) || (hr==21) || (hr==22)) document.write("今晚又在这玩电脑了,没节目?") if (hr==23) document.write("真是越玩越精神,不打算睡了?") if (hr==0) document.write("凌晨了,还不睡?") document.write("</font></center>") //---> </SCRIPT> </td></tr></table></center> <br> <br> <center> <SCRIPT LANGUAGE="JavaScript"> <!-- hide function goHist(a) { history.go(a); } //--> </script></center> <br> <br> </body> </html>
提示:您可以先修改部分代码再运行
站内搜索
:
标题
内容
下一篇
非常方便时间控件
上一篇
日期输入控件
本栏目最新
栏目最新列表
符合标准的时间选择控件
js选择日期(可以选择开始结束时间)
带对勾的日期选择控件 蓝色
蓝色日历控件 只能选择日期
10秒倒计时的JS代码
网站优化策划
栏目最新列表
增加网站外链的快速方法
网站上线前必做的30个检查
新的友情链接参考标准(没有google的PR情况
优化Google的AdSense广告的五个工具
王通讲SEO八大基础
站点最新
站点最新列表
微博推广的一些技巧
xhEditor v1.1.7 发布,
收集的一些轻量级非常实
50个新鲜兼容最新版本的
javascript中cookie的设
Excel中出现#VALUE!、#D
jquery插件:飞飞表情插件
十个使用HTML5开发的精彩
支持HTML5的浏览器有哪些
飞妮莫属:漫画:如何写出
历史最热10条信息
MIME介绍 及
[
1
] [
2
] [
3
]
巧用Google和迅雷来下载
Transact SQL 常
[
1
] [
2
]
VIA Rhine II Fast Ethe
电脑常用端
[
1
] [
2
] [
3
]
Do you get a kick out
十道羊皮卷 欣赏+mp3版+
每日一句:A friend and
每日一句:Theres no tu
经典__悟透JavaScript
相关文章
文本格式ANSI,Unico
WIN 2003系统时间24
格式化时间(显示)函
显示虚拟格式化硬盘
多种时间显示格式
全中文大写日期格式
时间日期格式转换
随时间变化显示不同
格式化网址 返回一个
Google站点地图site
伟哥博客
西安房产
123最新电影
三四六四
关于站点
|
免责声明
|
联系站长
|
网站地图
|
陕ICP备07002804号
WEB技术QQ交流群:72840059
©2007 ffasp.com. 版权所有