🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: microsoft.public.inetsdk.programming.scripting.jscript
1 messages
1 total messages Started by Rafael Rasinger Thu, 14 Oct 1999 00:00
onmousemove event @ feame-pages
#25
Author: 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>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads