FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » mouse movement detection?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: mouse movement detection? [message #173896 is a reply to message #173895] Wed, 11 May 2011 20:42 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
jimp(at)specsol(dot)spam(dot)sux(dot)com wrote:

> Thomas 'PointedEars' Lahn <PointedEars(at)web(dot)de> wrote:
>> jimp(at)specsol(dot)spam(dot)sux(dot)com wrote:
>>> Jeff North <jnorthau(at)yahoo(dot)com(dot)au> 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 <meta http-equiv="refresh" content="600">
>>> 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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New PHP tutorial
Next Topic: Nslookup
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 22:32:20 GMT 2024

Total time taken to generate the page: 0.05063 seconds