Changing cursor to waiting in javascript/jquery

后端 未结 13 2055
孤街浪徒
孤街浪徒 2020-12-04 10:43

\"enter

How would i get my cursor to change to this loading icon when a function is ca

13条回答
  •  爱一瞬间的悲伤
    2020-12-04 11:17

    You don't need JavaScript for this. You can change the cursor to anything you want using CSS :

    selector {
        cursor: url(myimage.jpg), auto;
    }
    

    See here for browser support as there are some subtle differences depending on browser

提交回复
热议问题