Web相关
程序员文章站
2022-09-10 15:00:33
(1)Web常见控件介绍 https://www.cnblogs.com/hanke123/p/5940595.html (2)JS无鼠标键盘操作时跳转页面 (3)CSS书写规范 https://www.cnblogs.com/Lxb98117/p/W3c-norm.html ......
(1)web常见控件介绍
(2)js无鼠标键盘操作时跳转页面
<html> <head> <script type="text/javascript"> function screensaver(settings){ this.settings = settings; this.ntimeout = this.settings.timeout; document.body.screensaver = this; // link in to body events document.body.onmousemove = screensaver.prototype.onevent; document.body.onmousedown = screensaver.prototype.onevent; document.body.onkeydown = screensaver.prototype.onevent; document.body.onkeypress = screensaver.prototype.onevent; var pthis = this; var f = function(){pthis.timeout();} this.timerid = window.settimeout(f, this.ntimeout); } screensaver.prototype.timeout = function(){ if ( !this.saver ){ window.location = 'http://www.baidu.com'; } } screensaver.prototype.signal = function(){ if ( this.saver ){ this.saver.stop(); } window.cleartimeout(this.timerid); var pthis = this; var f = function(){pthis.timeout();} this.timerid = window.settimeout(f, this.ntimeout); } screensaver.prototype.onevent = function(e) { this.screensaver.signal(); } var saver; function initscreensaver(){ //blort; saver = new screensaver({timeout:5000}); } function window.onload(){ initscreensaver(); } </script> </head> <body> </p>5秒不动就跳转 </body> </html>
(3)css书写规范
https://www.cnblogs.com/lxb98117/p/w3c-norm.html
上一篇: 38.QT-QAxObject快速写入EXCEL示例
下一篇: easyui表格自动换行
推荐阅读
-
Eclipse中Web项目出现感叹或红叉该怎么解决?
-
myeclipse2014怎么打开web开发项目?
-
myeclipse2014导入web项目后页面中文显示乱码怎么办?
-
AutoCAD 2019如何关闭web和moblie保存文件功能
-
Java Web使用Html5 FormData实现多文件上传功能
-
Excel Services OverView系列2 使用Excel Web Access技术在线浏览Excel工作薄
-
Web开发者应该掌握的12个Firebug使用技巧
-
深入SQL SERVER合并相关操作Union,Except,Intersect的详解
-
Oracle 存储过程总结 二、字符串处理相关函数
-
如何用PHP来实现一个动态Web服务器