I have an image map which I have overlaid with some markers in the form of anchors. I currently have a hover trigger on each image map area and the associated anchor - as shown in screen shot
I need to treat these two elements as one, as currently when the mouse is moved out of one into the other, it calls .hover()
and the callback again. I want to call the hover callback only when the mouse is moved out of either elements.
$('#areaID1, #areaID2').hover(function(){
//same mouseover event
}, function(){
//same mouseout event
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With