faqts : Computers : Programming : Languages : JavaScript : Document

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

71 of 225 people (32%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How can I change my cursor to a user defined graphic?

Feb 24th, 2000 11:46
Martin Honnen, Reece,


I don't think current browsers allow that using client side javascript. 
I don't know of any way to change the cursor at all for NN2/3/4, and 
another knowlege base entry already shows how to use css to use 
predefined cursors with IE4/5 and NN6.
CSS2 also allows for
  <ELEMENT STYLE="cursor: url(cursorFile)">
but currently browsers do not support that.
Signed active x controls might be able to install additional cursors on 
a system for IE4/5 but that is beyond the scope of this client side 
javascript knowledge base.

What you can do is using dhtml to attach an image to the mouse pointer 
by capturing mousemove events and moving an image with the cursor. But 
that will not replace the system cursor.