超简单的jQuery图像缩放插件,8K源代码,多种调用方式。
使用说明:
1,将 jquery.js 和 jquery.zoom.js 文件链接到您的网站或应用程序。
2,添加一个元素,即你想要缩放的图像。例如:
1
|
< div id = "elem" ></ div > |
3,调用
1
2
3
|
$( '.box' ).ezoom( 'url' , function (e) { console.log(e); }); |
更多调用方法:
1
|
new JQueryZoom({...}).setImage(...); |
请查看源代码,以了解更多参数配置…
文件目录结构
- ┝ index.html
- ┝ jquery.zoom.js
原文链接:https://www.jocat.cn/archives/70928,转载请注明出处。