简体   繁体   English

JavaScript中的OnMouseOver效果

[英]OnMouseOver effect in JavaScript

I'm trying to do a Cool OnMouseOver effect incorporating JavaScript in my HTML file. 我正在尝试在HTML文件中加入JavaScript的酷OnMouseOver效果。 I have a picture with a map. 我有一张有地图的图片。 I have about 7 different areas inside that map. 该地图内有大约7个不同的区域。 I would like to add an OnMouseOver effect to each of those areas so that they can zoom in smoothly. 我想向每个区域添加OnMouseOver效果,以便它们可以平滑放大。 Somebody knows how may I achieve this? 有人知道我该如何实现? Thank you very much!! 非常感谢你!!

-Diego. -迭戈

All I can think of is split that map into 7 images, when one of those images is clicked you then zoom it - a library such as jQuery can help with this. 我所能想到的就是将地图拆分成7张图片,单击其中一张图片然后将其缩放-jQuery之类的库可以帮助您解决这一问题。

You can find instructions on animating image size with jQuery here . 您可以在此处找到有关使用jQuery动画图像大小的说明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM