Changing the colour/transparency of a div on rollover or using an imagemap

点点圈 提交于 2020-01-05 04:25:07

问题


I have a map which is one image. I need to have five hit areas on that image and when you rollover one of those areas, that div / part of the image / imagemap needs to go grey.

I don't want to use multiple images - I want to keep the map as one image.

Can anybody please help me - I've been searching most of the day for a solution and can't find one.

Thanks in advance.


回答1:


The most straight forward solution is probably an image map using maphilight. You can find an example there with the code available here.



来源:https://stackoverflow.com/questions/5429041/changing-the-colour-transparency-of-a-div-on-rollover-or-using-an-imagemap

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!