Hello, I have a need of function to detect mouse cursor position – how far from edge of is the mouse. Because I want to return true if the mouse is more then 40px from the edge if image. Have no idea how to do it? I am using JQuery.
@JMRKERJun 24.2013 — #No need to use JQuery, but you can modify it if desired. <i> </i><!DOCTYPE HTML> <html> <head> <title> Untitled </title> <meta charset="utf-8"> <style type="text/css"> #divID{ top:50px; left:150px; position:fixed; } </style>