js/jquery.jqzoom1.0.1.js
(开头部分) 26KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* JQZoom Evolution 1.0.1 - Javascript Image magnifier
*
* Copyright (c) Engineer Renzi Marco(www.mind-projects.it)
*
* $Date: 12-12-2008
*
* ChangeLog:
*
* $License : GPL,so any change to the code you should copy and paste this section,and would be nice to report this to me(renzi.mrc@gmail.com).
*/
(function($)
{
$.fn.jqzoom = function(options)
{
var settings = {
zoomType: 'standard', //standard/reverse/innerzoom
zoomWidth: 200, //zoomed width default width
zoomHeight: 200, //zoomed div default width
xOffset: 10, //zoomed div default offset
yOffset: 0,
position: "right" ,//zoomed div default position,offset position is to the right of the image
lens:true, //zooming lens over the image,by default is 1;
lensReset : false,
imageOpacity: 0.2,
title : true,
alwaysOn: false,
showEffect: 'show',
hideEffect: 'hide',
fadeinSpeed: 'fast',
fadeoutSpeed: 'slow',
preloadImages :true,
showPreload: true,
preloadText : 'Loading zoom',
preloadPosition : 'center' //bycss
};
//extending options
options = options || {};
$.extend(settings, options);
return this.each(function()
{
var a = $(this);
var aTitle = a.attr('title'); //variabile per memorizzare il titolo href
$(a).removeAttr('title');
$(a).css('outline-style','none');
var img = $("img", this);
var imageTitle = img.attr('title');
img.removeAttr('title'); //variabile per memorizzare il titolo immagine
var smallimage = new Smallimage( img );
var smallimagedata = {};
//imageborder
var btop = 0;
var bleft = 0;
后面还有 1064 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
