代码驿站移动版
频道导航
HTML/Xhtml
CSS
JavaScript
HTML5
PHP教程
ASP.NET
正则表达式
AJAX
ThinkPHP
Yii
MySQL
MariaDB
Oracle
MongoDB
Redis
DedeCMS
PHPCMS
帝国CMS
WordPress
Discuz
其它CMS
Zend Studio
Sublime
Notepad
Dreamweaver
Windows
Linux
Nginx
Apache
IIS
CentOS
Ubuntu
Debian
网站优化
工具资源
PHP源码
ASP.NET源码
其它源码
图标素材
按钮素材
字体素材
DedeCMS模板
帝国CMS模板
PHPCMS模板
WordPress模板
Discuz!模板
单页模板
开发软件下载
服务器软件下载
广告投放
联系我们
版权申明
软件编程
网页前端
移动开发
数据库
服务器
脚本语言
PHP代码
JAVA代码
Python代码
Android代码
当前位置:
主页
>
网页前端
>
JavaScript代码
>
js实现的定时关闭页面或定时提醒效果代码
时间:2021-04-30 10:11:23 | 栏目:
JavaScript代码
| 点击:次
<HTML xmlns:v xmlns:t> <HEAD> <STYLE>v\:*{behavior:url(#default#vml)} v\:oval,#oDiv{position=absolute;width=200;height=200} #stay{position=absolute;top=70;left=59;color=RED;padding=6;font=900 20/1.3} #input input{border-left=0;border-right=0} </STYLE> <TITLE>Cool Clock</TITLE> <hta:application border=none scroll=0 innerBorder=ridge> <?import namespace=t implementation="#default#time2"/> </HEAD> <BODY topmargin=12 onload=resizeTo(220,240),moveTo(200,5)> <v:oval fillcolor=#8F strokecolor=gray strokeweight=3 /> <t:par onrepeat=alt.click() repeatcount=indefinite> <t:TRANSITIONFILTER TYPE="clockWipe" dur=60 TARGETELEMENT="oDiv"/> <DIV ID="oDiv" DUR=60> <v:oval fillcolor=#FF0 strokecolor=RED strokeweight=2 /> </DIV></t:par> <a href=# id=alt></a><U id=stay unselectable=on></U> <t:ref id=ref style=width=200;height=200 src=臭男人.wmv mute=true clipBegin=23.8 dur=4 begin=alt.click /> <DIV> <t:par repeatCount=indefinite> <HR align=left id=hr0 color=TEAL width=200 size=14> <hr onpropertychange="per=parseInt(100*offsetWidth/hr0.offsetWidth),len.innerHTML=(per>9?'':'_')+per+'%'" style=position=absolute;top=219;height=expression(hr0.size) color=BLUE id=hr dur=60> <t:animate targetElement=hr attributeName=width id=hran from=0></t:par> Loading persent: <a id=len style=color=red;font=800></a> .</DIV> <dl><dt><h4>定时关闭叶面或则定时提醒:</h4> <form name=FF><dd>请设置定时关闭叶面<br>或则定时提醒的时间:<br> <input id=HH onmouseover=select() style=border-right=0 size=1 value=23><q id=input><input style=width=9 value=: disabled><input id=MM onmouseover=select() size=1 value=01><input style=width=9 value=: disabled></q><input id=SS onmouseover=select() style=border-left=0 size=1 value=00><br> <button hideFocus onclick='tips.innerHTML="窗口将于 "+FF.HH.value+":"+FF.MM.value+":"+FF.SS.value+"自动关闭...";setInterval("if(clock(FF.HH.value,FF.MM.value,FF.SS.value))window.close()",1)'>设定关闭</button><img width=5 height=1> <button hideFocus onclick='setInterval("if(clock(FF.HH.value,FF.MM.value,FF.SS.value)){ref.mute=false;ref.dur=30;alt.click()}",1); setInterval("if(clock(FF.HH.value,(FF.MM.value*1+1),FF.SS.value)){ref.mute=true;ref.dur=3;alt.click()}",1)'>设定提醒</button><img width=5 height=1> <button type=reset>重新设定</button><br> <span id=tips style='background=lightyellow'></span></dl> </form> <script> hran.dur=hr.dur,hran.to=hr0.width int=new Date(),B='<br>' setInterval("stay.innerHTML=String(int).slice(-22,-13).fontcolor(1)+B+String(new Date(new Date()-int-288e5)).split(/ /)[3]+B+Date().slice(-13,-5).fontcolor()",1e3) function clock(hh,mm,ss){with(new Date()) return new Date()-new Date(getYear(),getMonth(),getDate(),hh*1,mm*1,ss*1+1)==0} </script> </BODY> </HTML>
[Ctrl+A 全选 注:
引入外部Js需再刷新一下页面才能执行
]
您可能感兴趣的文章:
JavaScript常见事件处理程序实例总结
Javascript的匿名函数小结
url传递的参数值中包含&时,url自动截断问题的解决方法
Javascript别踩白块儿(钢琴块儿)小游戏实现代码
兼容浏览器的js事件绑定函数(详解)
相关文章
10-19
javascript上下左右定时滚动插件
11-23
Webpack中loader打包各种文件的方法实例
11-27
Javascript实例教程(19) 使用HoTMetal(2)
10-05
javascript判断图片是否加载完成的方法推荐
11-22
在javascript中执行任意html代码的方法示例解读
JQuery
VUE
AngularJS
MSSql
MySQL
MongoDB
Redis
Linux
Tomcat
Nginx
网站首页
广告投放
联系我们
版权申明
联系站长