<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. = ScreenSaver.prototype.onevent;
Document.body. = 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 = '/logout '; Exit Login function
}
}
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});
}
Window.onload = function () {
Initscreensaver ();
}
</script>
<body>
</p>5 seconds do not move on the jump
</body>
Web implementation 5 minutes mouse Keyboard no action, automatic exit Login