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?

193 of 265 people (73%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

(How) Can I change the cursor?
(How) Can I change the cursor?

Apr 2nd, 2000 13:21
Martin Honnen, http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/cursor.asp


With IE4/5 and NN6 you can use css for instance
  <TAGNAME STYLE="cursor: wait;">
which can of course also be scripted dynamically for instance
  document.body.style.cursor = 'wait';
  // do some computation
  document.body.style.cursor = 'auto';
NN2/3/4 don't allow changing the cursor, neither with css nor 
dynamically with js. All you can do with NN4 is attach a layer (for 
instance with a small image) to the existing cursor (see
http://www.faqts.com/knowledge-base/view.phtml/aid/2041/fid/128/lang/
for that).

Another problem is that IE4/5 use
  cursor: hand
for a hand cursor while NN6 is following the css2 standard which uses
  cursor: pointer