How To Set A Cursor Image Via Jquery?
Inside a web application I have a loading event. If the browser is loading data from the server, I want the cursor change to a gif that shows a clock. How can I change the cursor a
Solution 1:
Try this way:
$(this).css( 'cursor', 'url(cursor.png), auto' );
Here is JSFiddle: http://jsfiddle.net/fv3Bk/1/
The auto
parameter tells what cursor type to use if cursor' image is not found. (See here more cursor types, here the example with another one )
Post a Comment for "How To Set A Cursor Image Via Jquery?"