How to INSERT a TIMER SCRIPT
A timer script is a short javascript that is inserted into the HTML of your document after the <HEAD> TAG through the beginning <BODY> tag. This script is used to load the tool you've chosen into a separate browser window after a specified amount of time.
The current time default value is set for FIVE minutes or 300000 milliseconds. If you want to increase or decrease the time, be sure to change all of the values in red below. For example, 1000 is one second, 5000 is five seconds. For minutes, multiply your time in minutes by 60000.
Paste the following script into a web page which should be located in the same folder as the tools's page you downloaded.
The timer script follows. Copy EVERYTHING below with your mouse and paste it into the HTML source of your web page. Note that you must also the body tag information so be careful when you overwrite your existing body tags.
(Prior to some minor modifications, the script show below is courtesy of IRT.org located at http://developer.irt.org/script/1410.htm)
-----------------------------------------------------copy everything below this line-------------------------------------------------
<script language="JavaScript"> if (navigator.appName == 'Netscape') { document.captureEvents(Event.MOUSEMOVE | Event.KEYDOWN); document.onmousemove = netscapeEvent; document.onkeydown = netscapeEvent; } function doit() { timerRunning = false; alert('hello world'); } function netscapeEvent(e) { if (e.screenX != document.test.x.value && e.screenY != document.test.y.value) { if (timerRunning) { clearTimeout(myTimer); myTimer = setTimeout('doit()',300000); } document.test.x.value = e.screenX; document.test.y.value = e.screenY; } } function microsoftEvent() { if (window.event.x != document.test.x.value && window.event.y != document.test.y.value) { if (timerRunning) { clearTimeout(myTimer); myTimer = setTimeout('doit()',300000); } document.test.x.value = window.event.x; document.test.y.value = window.event.y; } } var myTimer = setTimeout('doit()',300000); // invoke doit() after "x" seconds or minutes of mouse inactivity var timerRunning = true; </script> </head> <body onMouseMove="microsoftEvent()" onKeyDown="microsoftEvent()"> <form name="test"><input type="hidden" name="x"><input type="hidden" name="y"></form>-----------------------------------------------------copy everything above this line-------------------------------------------------