Using jQuery or just plain Javascript is it possible to change to a custom cursor?

后端 未结 2 1367
被撕碎了的回忆
被撕碎了的回忆 2021-01-24 01:40

I know it is possible to use jQuery to do something like:

$(\'body\').css(\'cursor\',\'wait\');

What I want to know is: is it possible to chang

相关标签:
2条回答
  • 2021-01-24 02:29

    You are just manipulating CSS on the fly here. See the spec — URIs are acceptable. Browser support is variable. I haven't tried it in years, but last time I did Internet Explorer required the cursors to be in .cur format.

    That said, while it is possible, there are a good set of standard cursors that users recognise. It is rare that you will have thing usefully represented by a cursor that isn't covered by the standard list, and when that list does cover things it should be used so users don't have to learn a new icon.

    0 讨论(0)
  • yes, have a look at this page

    custom cursor

    or this

    custom cursor - 2 (easier to understand/customize i guess)

    (but using non-default cursors is probably not a great idea)

    0 讨论(0)
提交回复
热议问题