I want to use the coordinates of the image map, but not the map itself. So my question is: can I use the coordinates of the image map and determine if the user scrolls through these coordinates using jquery?
EDIT:
I am aiming for something like this: (I don’t actually use an image card, it just agrees.)
Coordinates from the image map: 186,106,199,86,220,86,241,94,245,109
$("img#test").hover(function(e) {
if (e.pageX >= 186 && e.pageY >= 106 &&
e.pageX >= 199 && e.pageY >= 86 &&
e.pageX >= 220 && e.pageY >= 86 &&
e.pageX >= 241 && e.pageY >= 94 &&
e.pageX >= 245 && e.pageY >= 109)
alert("wewt");
});
DMar source
share