I run a small webpage that allows users to click on various links using image maps. I’d like to highlight the section that a user clicks on to give some feedback to the user (they may be clicking on several different parts rapidly).
Is there a way I can invert (or otherwise highlight) a small section of an image JavaScript?
Instead of using image maps, you could try this CSS method:
Use a transparent
<div>on top of each “image-map” part (link), and then use the CSS:hoverpseudo-class to handle the highlighting.CSS:
HTML:
Note that this will only work for rectangular links.