<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
var state="idle";
var saver ;
function initScreenSaver() {
// blort;
saver = new ScreenSaver({
timeout : 5000
});
};
function ScreenSaver(settings) {
this.settings = settings;
this.nTimeout = this.settings.timeout;
document.body.screenSaver = this;
document.body.onmousemove = ScreenSaver.prototype.onevent;
document.body.onmousedown = ScreenSaver.prototype.onevent;
document.body.onkeydown = ScreenSaver.prototype.onevent;
document.body.onkeypress = ScreenSaver.prototype.oneven
js监听鼠标键盘动作,超时不动作触发相应动作
最新推荐文章于 2023-10-06 17:29:30 发布