Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 774 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 774 Bytes

jQuery changeCursor plugin

Plugin changes cursor to image before element. Useful when you need to use image bigger than 128x128px as cursor.

###Browsers support: Working with all browsers except IE<9

###Demo Link

###How to Use?

changeCursor depends on jQuery. Include them both in end of your HTML code:

<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.change-cursor.js" type="text/javascript"></script>

then in your code do:

$('.my-class').changeCursor('myurl/img.png', dx, dy, zIndex);

dx, dy - coordinates of picture center

  • dx - from left
  • dy - from top
  • zIndex - z-index css style for cursor

###To do

  • Chrome performance
  • Different types of cursors support (.cur, char)