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

后端 未结 2 1388
被撕碎了的回忆
被撕碎了的回忆 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.

提交回复
热议问题