faqts : Computers : Programming : Languages : JavaScript : DHTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 24 people (29%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How Can I Hide Mouse Cursor ?

Jul 18th, 2007 07:14
Shachi Bista, Abolfazl Shirazi,


Abolfazl Shirazi:
It seems that nobody can answer this question, Probably It doesn't 
have any answer. I think that we
can't hide mouse cursor with a javascript function  but I have a 
suggestion to solve this problem.
we can create a mouse pointer file (*.cur) with any graghic software 
which contains no cursor shape
and be empty and then with the script below, replace the window mouse 
pointer with that:
<!-- Begin -->
<html>
<head>
<script language="javascript">
function ReplaceCur() {
	BodyTag.style.cursor = "URL('empty.cur')"
}
</script>
</head>
<body id="BodyTag">
<button onclick="ReplaceCur()">Hide Cursor!</button>
</body>
</html>
<!-- End -->
I can only suggest this procedure to solve this problem.
Maybe Someday, Someone give us a better answer!
------
Shachi Bista:
In fact ... you can:
http://www.dynamicdrive.com/forums/showthread.php?t=17165