Click to See Complete Forum and Search --> : ensure viewing of page


doobster
09-24-2003, 01:46 PM
Hello I have a page that displays an advertisers website for a specified time limit.

Currently I use simple javascript to countdown to zero. When zero is reached the user is redirected.

What I was wondering if it is possible to ensure that the user is actually looking at the page.

What I mean by that is ensure the window is not minimized and the user has the mouse somewhere in the browser window.

I would like the script to check for this each time a second is taken away. So if the user is not viewing the page the counter will not move. If they are the counter will count down.

Any help on this would be greatly appreciated.

Jona
09-24-2003, 02:32 PM
That, my friend, would be very frustrating to the person viewing your site, and would invade privacy settings. Personally I would not help you do this, even if it were possible, because I know how frustrating it is to not have control over your own personal computer.

[J]ona

doobster
09-24-2003, 02:54 PM
Hello this would not be an invasion of privacy.

This would not be forced upon anybody. It would be optionally that they view the advertising.

I just want to ensure that the advertisers site is actually seeing by the user.

And you should have complete control over your computer while viewing. I don't want the code to "force" the person I want to ensure that they are viewing.

As stated the counter would simple not countdown if they were not viewing the page they chose to view.

Jona
09-24-2003, 03:08 PM
In that case, set a global variable, set a function to increment the variable, set a function to decrement the variable, window.onFocus = functionThatIncrementsTheVariable();, and window.onBlur = functionThatDecrementsTheVariable();

[J]ona

dsok
01-20-2004, 06:37 AM
Check out http://webeye.unipro.ru the web-based web tracking service.

It is powerful invisible and free.

WebEye will not enforce the visitor to view your page, but WebEye can help you to measure the time visitor was actually viewing your site (by analyzing their mouse activity on the page).


Regards,
Daniil Y. Sokolov
http://webeye.unipro.ru

pelegk1
01-20-2004, 06:47 AM
define an area and check when the mouse there and not!
(u can define a rect for that are dont remember now how ecelly but its possible)
second it can get the user med
but if he inimize u can restor it by your self!