faqts : Computers : Programming : Languages : JavaScript

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

26 of 75 people (35%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How Can I Hide Mouse Cursor ?

Apr 8th, 2008 18:08
ha mo, 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!
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com