Bart Van der Donck wrote:
co*******@gmail.com wrote:
>Hi, :) I have a program which I need to have temporarily freeze user
input for about 8 seconds. Is there a method using JavaScript only
to freeze the mouse-cursor in a invisible position on the screen for
a pre-set duration?
In MSIE you can use an image for the mouse cursor; you could set that
to a transparent one:
<body style="cursor: url(img/transparent.ani)">
And/or you could constantly focus the cursor on, say, a form
element that is hidden somewhere.
Would that be good UI design. A wait cursor would be most appropriate,
along with scripting to ensure that user input would be disregarded
during the critical period.
Focus it 10 times a second or something like
that. Rather dirty, but should work.
Attempting to focus form fields that are hidden (by type, CSS display
and/or visibility) tends to throw exceptions in some environments (so
would not work to control user input).
Richard.