Skip to content

Webbrother/jquery.change-cursor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

jQuery plugin to change default cursor to necessary image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published