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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -