How can I change cursors on a mouse over event?

  • Thread starter Change a cursor on mouseover
  • Start date
C

Change a cursor on mouseover

I have some text with behaviors (opening a layer) and I want the cursor to
change when the mouse is hovered the text.

Any ideas?
 
C

Change a cursor on mouseover

At this moment I just have underlined text with behaviors to maks a layer
visible using the 'onclick' event.

<u id="id3"
onclick="FP_changeProp(/*id*/'popup_menu',0,'style.visibility','visible')">contact us</u>

I did not use a hyperlink because the layer wasn't listed in the linking
options.

I would like the user to know they are hovering above the text as if it were
a hyperlink.
 
H

Helpful person

At this moment I just have underlined text with behaviors to maks a layer
visible using the 'onclick' event.

<u id="id3"
onclick="FP_changeProp(/*id*/'popup_menu',0,'style.visibility','visible')">­contact us</u>

I did not use a hyperlink because the layer wasn't listed in the linking
options.

I would like the user to know they are hovering above the text as if it were
a hyperlink.






- Show quoted text -

You can use CSS as in this example (ignore the Java section).

http://www.w3schools.com/css/pr_class_cursor.asp

www.richardfisher.com
 
M

Murray

<u id="id3"
onclick="FP_changeProp(/*id*/'popup_menu',0,'style.visibility','visible')">contact
us</u>

See, this is a mistake. You cannot apply events to the <u> tag. They must
be applied to an anchor that surrounds the <u> tag. Change your code as
follows -

<a href="#"
onclick="FP_changeProp(/*id*/'popup_menu',0,'style.visibility','visible');return
false"> <u id="id3" contact us</u></a>

and you will get what you want.
 
Top