[英]Zoom on HTML Image Map
Does anyone know how to zoom-in/magnify an HTML Image Map in the same style as jQZoom ? 有谁知道如何以与jQZoom相同的样式放大/放大HTML Image Map?
I've tried using/adapting the jQZoom code but end up losing the Image Map links and just linking to the larger image. 我尝试使用/适应jQZoom代码,但最终丢失了Image Map链接,而只是链接到较大的图像。
Any ideas/help greatly appreciated, S. 任何想法/帮助都非常感谢,S。
You can try with Bezoom http://benjaminmock.de/bezoom-jquery-plugin/ 您可以尝试使用Bezoom http://benjaminmock.de/bezoom-jquery-plugin/
Bezoom uses the img tag to apply the zoom, the the script seems pretty straightforward: Bezoom使用img标签应用缩放,该脚本看起来非常简单:
var img = $(this).find('img');
var imgSmallHeight = $(this).find('img').height();
var imgSmallWidth = $(this).find('img').width();
You could change these and some other thingies in the code to apply the effect to any other element such as a div. 您可以在代码中更改这些以及其他一些东西,以将效果应用于其他任何元素,例如div。 Is this what you are looking for?
这是你想要的?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.