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 -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -