🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.inetsdk.programming.scripting.jscript
Article #24

Thanks!

#24
From: Rafael Rasinger
Date: Wed, 13 Oct 1999 00:00
95 lines
3148 bytes
Hi Vidar Petursson!

> 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 :)

Great! Thanks a lot! It really works! (accept the onkeydown in MSIE, but
I'll figure it out)

cu, Rafi

> <HTML>
> <HEAD>
> <SCRIPT language="JavaScript">
> var cnt=0;
> function cIt(){
> if(cnt++>=10) location.href="PageToGo.htm";
> else setTimeout("cIt()",1000);
> }
>
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: <380452ad@news.kapsch.co.at>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38043687@news.kapsch.co.at> <380437bc@news.kapsch.co.at> <uugABvVF$GA.263@cppssbbsa03>

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: fb3cb,6ee5ae86b5cf8c90
X-Google-Attributes: gidfb3cb,public
X-Google-Thread: 10c71c,6ee5ae86b5cf8c90
X-Google-Attributes: gid10c71c,public
From: "Rafael Rasinger" <rasinger@atc.co.at>
Subject: Thanks!
Date: 1999/10/13
Message-ID: <380452ad@news.kapsch.co.at>
X-Deja-AN: 536173527
References: <38043687@news.kapsch.co.at> <380437bc@news.kapsch.co.at> <uugABvVF$GA.263@cppssbbsa03>
X-Original-NNTP-Posting-Host: 193.80.86.140
X-Trace: 13 Oct 1999 11:36:45 +0100, 193.80.86.140
Organization: Kapsch AG; Vienna, Austria
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: microsoft.public.inetsdk.programming.scripting.jscript,microsoft.public.scripting.jscript,borland.public.intrabuilder.javascript,comp.lang.javascript
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@kapsch.net