Click to See Complete Forum and Search --> : changing mouse cursor in JavaScript
Jeremy Davis
April 25th, 2002, 08:01 AM
To change the pointer cursor to a hand cursor in an onMouseOver event I use
id.style.cursor = "hand";
This works in IE but not Netscape.
Can someone tell me what I could write this for Netscape, or to make it work in both?
Thanks
Jeremy Davis
http://www.astad.org
websmith99
October 2nd, 2002, 02:36 PM
Netscape 4.x does not allow the ability to change the cursor style using CSS or JavaScript.
With Netscape 6.x, you can change the cursor style (but it supports every style EXCEPT the hand) :
http://home.hccnet.nl/c.ruhe/sub/computer/tests/mousepointer.html
However, depending on what the element is that you want to have the cursor change to a hand when hovering over, you can make a false link and the browser will display the cursor as a hand by default:
<a href="#" onclick="return false" style="text-decoration: none">cursor is a hand</a>
Zvona
October 3rd, 2002, 03:48 AM
Originally posted by websmith99
...With Netscape 6.x, you can change the cursor style (but it supports every style EXCEPT the hand) :
That's because hand is instandard value for property cursor. Correct value is pointer. This works both on IE and NS.
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.