views:

53

answers:

1

In a webpage is it possible use JavaScript to set the cursor:none; CSS attribute if the mouse is inactive for a certain amount of time (say, five seconds) and set it back to cursor:auto; when it again becomes active?

Thanks for your help.

+4  A: 

none is not a valid value for the cursor property.

You might be able to use a custom cursor loaded from a URI that is simply transparent.

I would consider this to be highly distracting for the user, though, so I wouldn't advise you to actually do that.

Joey
+1 It's not really good UX to confuse the user with things like this.
peol