admin管理员组文章数量:1425747
Is there any way to change mouse pointer icon using javascript(or any other method) when I hover it on a normal text on which I want it to appear like a hand as with links on a webpage.
Is there any way to change mouse pointer icon using javascript(or any other method) when I hover it on a normal text on which I want it to appear like a hand as with links on a webpage.
Share Improve this question asked Feb 19, 2012 at 6:29 Aishwarya ShivaAishwarya Shiva 3,41616 gold badges61 silver badges112 bronze badges3 Answers
Reset to default 4See http://www.w3schools./cssref/pr_class_cursor.asp
Using css:
div { cursor:pointer; }
Look up the css attribute cursor.
It's the best way to do it.
You could use like:
onmouseover="this.style.cursor = 'hand';" //on mouse over
onmouseout="this.style.cursor = 'auto';" // on mouse out
本文标签: javascriptHow can I change mouse pointer icon on a web pageStack Overflow
版权声明:本文标题:javascript - How can I change mouse pointer icon on a web page? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745372574a2655795.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论