Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Javascript :hover, is it possible to designate areas. Re: Javascript :hover, is it possible to designate areas.

#132297
CrocoDillon
Participant

With jQuery (too lazy to try without) you can easily get the coordinates within the event target, and do some logic on that:

http://codepen.io/CrocoDillon/pen/Kardl

EDIT: Actually without jQuery it was pretty much the same, only need to adapt the code to work on IE with `attachEvent();`