Change cursor to finger pointer – Stack Overflow #cursor #not #moving

Posted On Aug 19 2017 by


Here is something cool if you want to go the extra mile with this. in the url, you can use a link or save an image png and use the path. for example:

below is the code:

So this will only work under the size 128 X 128, any bigger and the image wont load. But you can practically use any image you want! This would be consider pure css3, and some html. all you got to do in html is

and only in that div, that cursor will show. So I usually add it to the body tag.

answered Sep 11 ’15 at 19:49

I think the “best answer” above, albeit programmatically accurate, does not actually answer the question posed. the question asks how to change the pointer in the mouseover event. I see posts about how one may have an error somewhere is not answering the question. In the accepted answer, the mouseover event is blank ( ) and the style option, instead, is included. Baffling why this was done.

There may be nothing wrong with the inquirer’s link. consider the following html:

When a user mouse’s over this link, the pointer will not change to a hand. instead, the pointer will behave like it’s hovering over normal text. One might not want this. and so, the mouse pointer needs to be told to change.

the answer being sought for is this (which was posted by another):

However, this is. a nightmare if you have lots of these, or use this kind of thing all over the place and decide to make some kind of a change or run into a bug. better to make a CSS class for it:

there are many other ways which would be, arguably, better than this method. DIV s, BUTTON s, IMG s, etc might prove more useful. I see no harm in using a . /a . though.

answered Sep 27 ’15 at 8:06

Add an href attribute to make it a valid link return false; in the event handler to prevent it from causing a navigation;

(Or make displayData() return false and. =”return displayData(. )

answered Jan 10 ’12 at 20:19

Your Answer

2017 Stack Exchange, Inc

Last Updated on: August 19th, 2017 at 8:44 am, by

Written by admin

Leave a Reply

Your email address will not be published. Required fields are marked *