×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Delay / Pause Header Refresh is mouse is moved

Delay / Pause Header Refresh is mouse is moved

Delay / Pause Header Refresh is mouse is moved

(OP)
Hello, I have a series of php pages which refresh to each other every 10 seconds (in a loop) is it possible to delay the header refresh if a mouse is moved?

kindest thanks

Brian

RE: Delay / Pause Header Refresh is mouse is moved

How is PHP used to refresh to a new page every 10 seconds? I'm guessing it is not actually being used.

You probably want to seek guidance in the JS forum.

forum216: Javascript

RE: Delay / Pause Header Refresh is mouse is moved

Since PHP has no control over the pages once they are loaded and as such would not have any control on how often they refresh, this would probably be best answered in the JS forum which can affect the refresh.

How exactly are you establishing the page refresh? Are you outputting a meta tag? A Javascript function?



----------------------------------
Phil AKA Vacunita
----------------------------------
OS-ception: Running Linux on a Virtual Machine in Windows which itself is running in a Virtual Machine on Mac OSx.

Web & Tech

RE: Delay / Pause Header Refresh is mouse is moved

Quote:

I have a series of php pages which refresh to each other every 10 seconds (in a loop) is it possible to delay the header refresh if a mouse is moved?

Simple answer, ... ... No.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.

RE: Delay / Pause Header Refresh is mouse is moved

lol - I read your post several times before I replied - I cannot imagine the scenario where you have various pages up on the screen at once since your browser can only render one view port at a time ...

Not truly understanding what you're looking for, I would venture suggest that you:
1. set a variable in javascript and set to a value ON or OFF
2. write code to track mouse movement (https://api.jquery.com/mousemove/)
3. if mouse move, change set variable to ON or OFF
4. whatever means you are using to launch the page refresh, change it so that it checks the value of set variable and if ON or OFF, decide what to do

--
SouthBeach
http://www.fp2php.com
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close