Article View: microsoft.public.inetsdk.programming.scripting.jscript
Article #23Re: NN-f�hig machen
From: Vidar Petursson
Date: Wed, 13 Oct 1999 00:00
Date: Wed, 13 Oct 1999 00:00
85 lines
2662 bytes
2662 bytes
Hi
This should work with NN (Did not check it though)
Let me know if it does not work an i will try to fix it :)
<HTML>
<HEAD>
<SCRIPT language="JavaScript">
var cnt=0;
function cIt(){
if(cnt++>=10) location.href="PageToGo.htm";
else setTimeout("cIt()",1000);
}
if(navigator.appName=="Netscape"){
window.captureEvents(Event.KEYDOWN);
window.captureEvents(Event.MOUSEMOVE);
window.onkeydown=resetIt;
window.onmousemove=resetIt;
}
function resetIt(e){
cnt=0;
}
onload=cIt;
</SCRIPT>
</HEAD>
<BODY onkeydown="cnt=0" onmousemove="cnt=0">
ScreenSaver? :)
</BODY>
</HTML>
--
Best Regards
Vidar Petursson
http://www.icysoft.com
TheKing@icysoft.com
icysoft@vortex.is
No matter where you go there you are
-
Rafael Rasinger <rasinger@atc.co.at> wrote in message news:380437bc@news.kapsch.co.at...
> Dear reader!
>
> I need the code below to work in NN. But I do not know how to perform it.
> could u give me a hint?
>
> The code performs following function, which perfectly works in MSIE: After
> reaching a certain timeout time, (triggered by not moving the mouse) an
> timeout-page should be loaded [represented by "alert("Screen saver on")"].
>
> Could u give me a hint?
>
> Thanks 4 ur help, Rafael
>
> *********
> <HTML><HEAD>
> <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
> <META content="MSHTML 5.00.2919.800" name=GENERATOR>
> <STYLE></STYLE>
>
> <SCRIPT language=JavaScript>
>
> var cnt=0;
> function cIt(){
>
> MyTimer.innerText=cnt;
>
> if(cnt++>=2) alert("Screen saver on : )");
> else setTimeout("cIt()",1000);
> }
>
> </SCRIPT>
>
>
> </HEAD>
> <BODY onkeydown=cnt=0 onload=cIt() onmousemove=cnt=0;>
>
>
> <DIV id=MyTimer></DIV>
>
> </BODY>
> </HTML>
>
>
>
Technical Details
Message-ID:
<uugABvVF$GA.263@cppssbbsa03>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38043687@news.kapsch.co.at> <380437bc@news.kapsch.co.at>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4a5,6ee5ae86b5cf8c90 X-Google-Attributes: gid10d4a5,public X-Google-Thread: 10731d,6ee5ae86b5cf8c90 X-Google-Attributes: gid10731d,public X-Google-Thread: 10c71c,6ee5ae86b5cf8c90 X-Google-Attributes: gid10c71c,public X-Google-Thread: fb3cb,6ee5ae86b5cf8c90 X-Google-Attributes: gidfb3cb,public From: "Vidar Petursson" <icysoft@vortex.is> Subject: Re: NN-f�hig machen Date: 1999/10/13 Message-ID: <uugABvVF$GA.263@cppssbbsa03> X-Deja-AN: 536169055 References: <38043687@news.kapsch.co.at> <380437bc@news.kapsch.co.at> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2918.2701 X-MSMail-Priority: Normal Newsgroups: microsoft.public.inetsdk.programming.scripting.jscript,microsoft.public.scripting.jscript,borland.public.intrabuilder.javascript,comp.lang.javascript