🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

onmousemove event @ feame-pages

#25
From: Rafael Rasinger
Date: Thu, 14 Oct 1999 00:00
48 lines
2118 bytes
Dear reader!

I've encountered the following problem.

Using the code below (an other page is loaded, when timeout is reached)
works perfectly for NN, but not for MSIE, because of the frameset
"window.captureEvents(Event.MOUSEMOVE);"  is not detected (it works without
frames in MSIE).

Is there a posibilty to make it work for MSIE?

Thanx!

****************
<HTML>
<HEAD>

<SCRIPT language="JavaScript">
var cnt=0;
function cIt(){
 if(cnt++>=10) location.href="timeout.asp";
 else setTimeout("cIt()",100);
 }

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>

<FRAMESET COLS="22%,*" frameborder=0 framespacing=0 border=0>
<FRAME  SRC="help.html" NAME="toolbar" MARGINWIDTH=0  SCROLLING=AUTO NORESIZE BORDER="0">
<FRAME SRC="help.html" Name="window" Marginwidth=0 scrolling=auto border="0" >
</FRAMESET>

</HEAD>
<BODY onkeydown="cnt=0" onmousemove="cnt=0">

Move ur mouse...otherwise u get a timeout pretty soon.... Rafi

</BODY>
</HTML>
Technical Details
Message-ID: <38058617@news.kapsch.co.at>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d4a5,431b717ae74f7838,start
X-Google-Attributes: gid10d4a5,public
X-Google-Thread: 10731d,431b717ae74f7838,start
X-Google-Attributes: gid10731d,public
X-Google-Thread: 10c71c,431b717ae74f7838,start
X-Google-Attributes: gid10c71c,public
X-Google-Thread: fb3cb,431b717ae74f7838,start
X-Google-Attributes: gidfb3cb,public
From: "Rafael Rasinger" <rasinger@atc.co.at>
Subject: onmousemove event @ feame-pages
Date: 1999/10/14
Message-ID: <38058617@news.kapsch.co.at>
X-Deja-AN: 536563273
X-Trace: 14 Oct 1999 09:28:23 +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