Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!feeder.news-service.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-Id: <2706187.dWV9SEqChM@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Wed, 11 May 2011 22:42 +0200 User-Agent: KNode/4.4.7 Content-Transfer-Encoding: 7Bit Subject: Re: mouse movement detection? Newsgroups: comp.lang.php References: <5jmrvpnl392w$.dlg@evanplatt.sux> <97ep98-c2m.ln1@mail.specsol.com> <5331105.9J7NaK4W3v@PointedEars.de> Followup-To: comp.lang.php MIME-Version: 1.0 Lines: 46 NNTP-Posting-Date: 11 May 2011 22:42:01 CEST NNTP-Posting-Host: 90d565b4.newsspool1.arcor-online.net X-Trace: DXC=f7:PbeOcnIC^B]`=U:WelBic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgB`bEo Thomas 'PointedEars' Lahn wrote: >> jimp@specsol.spam.sux.com wrote: >>> Jeff North wrote: >>>> richard wrote: >>>>>| Just curious to know if PHP, or other script language, has a method >>>>>| of detecting mouse movement. >>>>>| I had left a website page open all night and in the morning found I >>>>>| had been transferred to another page that said my mouse had been idle >>>>>| for 10 minutes. >>>>>| I have a hunch that it was probably due more to nothing happening on >>>>>| the page for a couple of hours. >>>> It could be javascript and timers or the page header has a refresh >>>> setting >>> Can't be done with just an HTML refresh. >> Yes, it can, but like client-side scripting it is not guaranteed to work. > > OK then, tell us what HTML tag will tell you whether or not the mouse has > moved. That is beside the point. As accurate as "richard"'s problem descriptions usually go, chances are it did not say that their "mouse had been idle", but that *they* had been idle, i.e. they had not navigated anywhere on that site. You can deal with this condition with a META-refresh, although as I said it is not reliable. > Doing it in javascript is rather trivial. There is no "javascript". In any ECMAScript implementation, it cannot be done reliably either, partially because one usually cannot determine pointer movements beyond the browser viewport. >> Do you have permission to use sux.com? > > Permission to do what exactly? To specify a mailbox at one of their sub-level domains. PointedEars -- var bugRiddenCrashPronePieceOfJunk = ( navigator.userAgent.indexOf('MSIE 5') != -1 && navigator.userAgent.indexOf('Mac') != -1 ) // Plone, register_function.js:16