Skip to content

A JavaScript module for setting the mouse cursor to always point at a desired HTML element.

License

Notifications You must be signed in to change notification settings

tlong314/cursor-pointer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CursorPointer

A JavaScript module to always point the mouse cursor pointer at a desired HTML element.

Usage

Import the cursor-pointer.js file. Then in your script use CursorPointer.pointAt to start pointing.

// Make sure the DOM has been loaded before trying to point to the element.
onload = function init() {
  
  var myDiv = document.getElementById("myDiv");
  CursorPointer.pointAt(myDiv);
  
};

About

A JavaScript module for setting the mouse cursor to always point at a desired HTML element.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published