2

Possible Duplicate:
Is it possible to hide the cursor in a webpage using CSS or Javascript?
Web browser: Hide mouse cursor

I'm making a website and I'm stuck with one problem. I wonder how I can make the mouse invisible on mouseover in an html element? Is it possible?

Community
  • 1
  • 1
einstein
  • 13,389
  • 27
  • 80
  • 110

1 Answers1

7

With CSS:

selector { cursor: none; }
psx
  • 4,040
  • 6
  • 30
  • 59
  • 2
    @Viky: I disagree. He said 'in an HTML element', not the full page... – psx Nov 09 '11 at 16:29
  • 2
    @Viky That's not at all what the OP is asking for... he wants the mouse to become invisible after mousing-over an element, NOT the entire page. This is actually the correct approach. – skyline3000 Nov 09 '11 at 16:31
  • 1
    Really quite unsure as to why Samuel's answer has +2 votes at the time of writing and I have -1. Especially seeing as in my opinion, mine answers the OP's question better with a specific selector, not to the whole page.... Oh well. – psx Nov 09 '11 at 16:31
  • @2ndDownvoter, please explain why. I come here to learn, so please teach me a better way of doing this. – psx Nov 09 '11 at 16:38
  • 1
    I agree with psynnott. The OP clearly states 'make the mouse invisible on mouseover in an html element'. It doesn't say the entire page/doc, nor does it doesn't mention any specific element. Psynnott answered correctly and gets my upvote. – Capagris Nov 09 '11 at 17:10