Click to See Complete Forum and Search --> : change cursor


vinsa
04-06-2003, 05:58 AM
Hello,
first sorry for my English.
I need from javascript.
On my page I have this:
---------------------------
<span>
some text bla, bla...</span>
----------------------------
I want, when onMouseOver over "some text bla, bla..."
the cursor of the mouse to change his style.
The cursor must be 'hand'. When onMouseout ->
cursor is normal again.
Is this possible?

Nevermore
04-06-2003, 06:23 AM
Firstly, what language do you naturally speak? I speak quite a few, so I may be able to help you more easily.

To make the hand cursor appear onMouseOver, just put this text in the span tag:

style="cursor: hand"

kopite
04-06-2003, 11:00 AM
How would you apply that against the whole page on the fly as opposed to just:

<body style="cursor: hand">

tried document.style="cursor: hand" and window.style="cursor: hand" but it did not perform.

Nevermore
04-06-2003, 11:46 AM
<style>
body { cursor: hand; }
</style>

vinsa
04-06-2003, 11:50 AM
thank you people! :)