Jquery 地图高亮
我使用 http://plugins.jquery.com/project/maphilight 来突出显示区域当我将鼠标悬停在图像地图上时,但我还想在单击时保持其突出显示。单击另一区域时,前一个区域应淡出,新区域保持突出显示。
有没有人见过这样做或知道这样做的方法?
非常感谢, C
I'm using http://plugins.jquery.com/project/maphilight for highlighting areas when I hover over an image map, but I'd also like to keep it highlighted when clicked. When another area is clicked, the previous one should fade out and the new one stay highlighted.
Has anyone seen this done or know a way to do this?
Many thanks,
C
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
ImageMapster: http://www.outsharked.com/imagemapster - 我的 jQuery 插件正是这样做的!
您想使用
singleSelect
选项,例如 http://jsfiddle.net/jamietre/ ufAF6/ImageMapster: http://www.outsharked.com/imagemapster - my jQuery plugin that does exactly this!
You want to use the
singleSelect
option, e.g. http://jsfiddle.net/jamietre/ufAF6/仅在 jquery&maphighlight 中有一个解决方案!:
诀窍在于处理好 maphighlight 的输入属性之一:alwaysOn:
编辑:确保您拥有最新的 maphilight ! :http://davidlynch.org/projects/maphilight/jquery.maphilight.min。 js ,来自maphilight的官方网页。
There is a solution in jquery&maphighlight ONLY!:
And the trick is in handling good one of the maphighlight's input attributes: alwaysOn:
EDIT: make sure you have the latest maphilight ! : http://davidlynch.org/projects/maphilight/jquery.maphilight.min.js , from maphilight's official webpage.
这个问题的解决方案位于
http://davidlynch.org/js/maphilight/docs/demo_features.html
如果您查看页面的源代码,就会找到解决您问题的代码。
重要提示:您需要 jquery.metadata.js 插件!!!!
问候
塞凯利戈贝
The solution for this problem is at
http://davidlynch.org/js/maphilight/docs/demo_features.html
if you look in the page's source, there is the code for your problem.
IMPORTANT : you need the jquery.metadata.js plugin!!!!
Regards
szekelygobe