34
rated 0 times
[
41]
[
7]
/ answers: 1 / hits: 30114
/ 13 Years ago, sat, july 2, 2011, 12:00:00
I am trying to make a div
visible at the position of the cursor when the cursor mouseover a marker using jQuery. Its kind of like a tooltip. However I cannot seem to figure out how to get the X/Y coordinates of the point below the cursor.
Current Code:
google.maps.event.addListener(marker, mouseover, function(event) {
$(#tooltip).css({
position: absolute,
top: event.pageY,
left: event.pageX
}).toggle();
I believe event
does not have the properties pageY
and pageX
like in the event in jQuery.
How do I get the position of the mouse cursor?
More From » jquery