爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
鼠标在日历中的多用途
鼠标在日历中的多用途
日期:2014-05-18 浏览次数:20205 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <script> function Year_Month(){ var now = new Date(); var yy = now.getYear(); var mm = now.getMonth()+1; var cl = '<font color="#0000df">'; if (now.getDay() == 0) cl = '<font color="#c00000">'; if (now.getDay() == 6) cl = '<font color="#00c000">'; return(cl + yy + '年' + mm + '月</font>'); } function Date_of_Today(){ var now = new Date(); var cl = '<font color="#0000df">'; if (now.getDay() == 0) cl = '<font color="#c00000">'; if (now.getDay() == 6) cl = '<font color="#00c000">'; return(cl + now.getDate() + '</font>'); } function Day_of_Today(){ var day = new Array(); day[0] = "星期日"; day[1] = "星期一"; day[2] = "星期二"; day[3] = "星期三"; day[4] = "星期四"; day[5] = "星期五"; day[6] = "星期六"; var now = new Date(); var cl = '<font color="#0000df">'; if (now.getDay() == 0) cl = '<font color="#c00000">'; if (now.getDay() == 6) cl = '<font color="#00c000">'; return(cl + day[now.getDay()] + '</font>'); } function CurentTime(){ var now = new Date(); var hh = now.getHours(); var mm = now.getMinutes(); var ss = now.getTime() % 60000; ss = (ss - (ss % 1000)) / 1000; var clock = hh+':'; if (mm < 10) clock += '0'; clock += mm+':'; if (ss < 10) clock += '0'; clock += ss; return(clock); } function refreshCalendarClock(){ document.all.calendarClock1.innerHTML = Year_Month(); document.all.calendarClock2.innerHTML = Date_of_Today(); document.all.calendarClock3.innerHTML = Day_of_Today(); document.all.calendarClock4.innerHTML = CurentTime(); } function getCalendarClockFreeCodeMsg(nn){ if (nn == 'off') CalendarClockFreeCode.style.visibility = 'hidden'; else { CalendarClockFreeCode.style.visibility = 'visible'; setTimeout("getCalendarClockFreeCodeMsg('off')",10000); } } var webUrl = webUrl; function calendarClockFreeCode(){ var win = window.open('about:blank','_blank','width=300,height=260,top=0,left=0'); win.document.writeln('<'+'script language="JavaScript">'); win.document.writeln('var autoClose = setTimeout("window.close()",30000)'); win.document.writeln('</'+'script>'); win.document.writeln('<p align="center"><a style="cursor:hand"'); win.document.writeln(' onclick="clearTimeout(autoClose)">请点击此处,否则<br>30秒后此窗口将自动关闭</a></p>'); win.document.writeln('<p>想在自己的网站上添加带日历时钟的朋友,请将下面框中的代码贴到网页的适当地方就可以了<br>'); win.document.writeln('<textarea rows="4" cols="30">'); win.document.writeln('<script>'); win.document.writeln('function Year_Month(){ '); win.document.writeln('var now = new Date(); '); win.document.writeln('var yy = now.getYear(); '); win.document.writeln('var mm = now.getMonth()+1; '); win.document.writeln('var cl = \'<font color="#0000df">\'; '); win.document.writeln('if (now.getDay() == 0) cl = \'<font color="#c00000">\'; '); win.document.writeln('if (now.getDay() == 6) cl = \'<font color="#00c000">\'; '); win.document.writeln('return(cl + yy + \'年\' + mm + \'月<\/font>\'); '); win.document.writeln('}'); win.document.writeln('function Date_of_Today(){ '); win.document.writeln(' var now = new Date(); '); win.document.writeln(' var cl = \'<font color="#0000df">\'; '); win.document.writeln(' if (now.getDay() == 0) cl = \'&l
上一篇:狡猾的按钮特效
下一篇:测算年度星期数
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
淘宝公布新规:升级售假卖家惩罚力度
创维冲击500亿梦想:转型硬件和内容供应商
郭美美事件推手被抓 “秦火火”拷问网络底线
这一次,微软将带给我们什么惊喜?
诺基亚仍是第二大手机商:功用机有利可图
联通丹东公司一高管造假套出手机变卖被判刑7年
天音通信170套餐试商用放号:流量两年不清零
微信企业号必须搬走四座大山,否则只能铩羽而归!
迅雷欲3300万美元收购金山快盘 预计9月完成
推荐阅读
更多>
打车软件“明补变暗补”背后的小算盘
传三星为赢得新兴市场:推廉价版Note3
虚拟运营商温度有多高?降温OR升温内外有别
想玩P2P?几个您必须知道的潜规则
看病也能用支付宝了 马云的又一盘大棋
网易云音乐能否为丁磊拿到移动互联网门票?
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
智能手机:中国手机市场最受关注十五款产品清点
从旗下三大业务BG发展看华为的过去现在和未来
微软为避免代理权争夺 与大股东达成和解协议
微软的云服务显示出他们将自我进化
墨迹天气:产品创新以攻为守方能对抗巨头
蜗牛移动董事长石海:号卡被叫停属乌龙事件
中国雅虎邮箱今日关停 由盛及衰的背后
眼球识别技术EyeVerify融资600万美元 360参投
天音通信170套餐试商用放号:流量两年不清零
清点:罗永浩推锤子ROM 小米打法遭模拟
国内首个大数据系列指数今日发布
联发科享用价钱战 专利难以摆脱高通
史玉柱此刻离任:营销巨匠为新游戏炒作?