XY-Position of the mousepointer
Posted: Wed Dec 11, 2002 4:05 pm
I have seen some page where an image follows the xy-position of mouse pointer in a frame.
What javascript properties are those that make that possible?
I know it works with IE, but I don't know how.
Is there a way to do it in Netscape 7?
In this case I am specifically interrested in the property that returns the x and y values. I already know how to do image positioning.
For example:...or something
What javascript properties are those that make that possible?
I know it works with IE, but I don't know how.
Is there a way to do it in Netscape 7?
In this case I am specifically interrested in the property that returns the x and y values. I already know how to do image positioning.
For example:
Code: Select all
var x=window.pointer.x
var y=window.pointer.y