在翻转或使用图像映射更改div的颜色/透明度 [英] Changing the colour/transparency of a div on rollover or using an imagemap

查看:134
本文介绍了在翻转或使用图像映射更改div的颜色/透明度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个图片的地图。我需要在该图片上有五个点击区域,当您滚动其中一个区域时,图片/图片地图的div /部分需要变灰。



不想使用多个图片 - 我想将地图保留为一个图片。



任何人都可以帮助我 - 我一直在搜索一天的大部分

解决方案


$ b p>最直接的解决方案可能是使用 maphilight 的图片地图。您可以在此找到一个示例,其中包含此处可用的代码


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.

解决方案

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

这篇关于在翻转或使用图像映射更改div的颜色/透明度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆