The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Possible JavaScript Question?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #44510

    Is there a way in JavaScript to have it change the page if the user hasn’t moved there mouse in 2 minutes?


    Here’s an image of a website i’m making the client wants it so when the user clicks on the boxes it would change content and it would also change if the user doesn’t move their mouse… I’m using the Kentico CMS… not my choice. Could you point me to an example site so maybe I can mimic/ use the jQuery or JavaScript? Thanks Guys!


    Some pseudo code to help you along.

    1.) Create a counter that counts to 119 seconds.
    2.) Reset counter if mouse move event is fired.
    -- or --
    2.) Reset counter if x or y has changed.
    3.) Once counter reaches target time redirect page.

    If you are dealing with log in times, shopping carts, etc you may want to deal with your server side stuff (sessions etc). Always remember, i can disable JS :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.