Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

change cursor to finger pointer

I have this a and I don't know that I need to insert into the "onmouseover" so that the cursor will change to finger pointer like a regular link:

<a class="menu_links" onclick="displayData(11,1,0,'A')" onmouseover=""> A </a> 

I read somewhere that I need to put:

onmouseover="cursor: hand (a pointing hand)" 

But it's not working for me.

Plus I'm not sure if this is considered JavaScript, CSS, or just plain HTML.

like image 839
Dvir Levy Avatar asked Jan 10 '12 20:01

Dvir Levy


People also ask

Why has my cursor changed to a hand?

There is a very basic solution for this, when you open the email you will see at the top of the scroll bar there is a small hand icon. Clicking this hand icon turns it ON (its very easy to accidently do). Simply click it again and it turns the 'hand grab' function off.

How do I restore my cursor back to normal?

A. If you are using a laptop, you should try pressing the key combination on your laptop keyboard that can turn on/off your mouse. Usually, it is the Fn key plus F3, F5, F9 or F11 (it depends on the make of your laptop, and you may need to consult your laptop manual to find it out).


2 Answers

<a class="menu_links" onclick="displayData(11,1,0,'A')" onmouseover="" style="cursor: pointer;"> A </a> 

It's css.

Or in a style sheet:

a.menu_links { cursor: pointer; } 
like image 109
Scott Avatar answered Oct 07 '22 19:10

Scott


You can do this in CSS:

a.menu_links {     cursor: pointer; } 

This is actually the default behavior for links. You must have either somehow overridden it elsewhere in your CSS, or there's no href attribute in there (it's missing from your example).

like image 20
Joseph Silber Avatar answered Oct 07 '22 19:10

Joseph Silber