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

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

java - SmsManager sending message more than one -