javascript - If mouse reaches far left of screen perform an action -
hi im looking way if mouse moves far left or right of screen action performed there way html css jquery etc? im trying navbar show when mouse reaches left end of screen. appreciated
see here http://api.jquery.com/mousemove/
based on examples, can use pagex , pagey determine position of mouse. have this:
$("body").on("mousemove",function(event) { if (event.pagex < 50) { // } });
Comments
Post a Comment