jquery图片展示插件,支持放大、缩小、左旋、右旋、悬浮打开图片
在网上找了个插件,改进了关闭及鼠标悬浮打开图片,附件地址下载,没下载成功的在我的资源里面找找
悬浮打开图片:
imageView.js $.fn.Magnify代码
var timer;
jqEle.off(EVENTS.MOUSEOVER,function () {
var _1_this = this;
clearTimeout(timer);
}).on(EVENTS.MOUSEOVER, function (e) {
var _1_this = this;
timer=setTimeout(function(t){
stopPro(e);
stopPre(e);
jqEle.data('magnify', new magnify(_1_this, opts));
},500);
});
jqEle.off(EVENTS.MOUSEOUT,function (e) {
var _1_this = this;
clearTimeout(timer);
}).on(EVENTS.MOUSEOUT, function (e) {
var _1_this = this;
clearTimeout(timer);
});
关闭按钮搜索 imageView.js 中的wClose
效果如下