北京时间10月24日19:35,中超联赛争冠组首轮次回合最后一场比赛,江苏苏宁和重庆当代争夺晋级席位,双方此前在首回合1-1战平。此役江苏苏宁在特谢拉停赛的情况下依然打出了高质量的比赛,关
[, , , , , , , , , , , , , , , , , , , , , , , , , , , , 0) magnifier_small_h = magnifier_small.outerHeight(true);
if(magnifier_box.height() boxW - marginLeft)||(difY < marginTop)||(difY > boxH - marginTop)) return;
var mouseX = difX - markW/2 - marginLeft,mouseY = difY - markH/2 - marginTop;
// Max range
var maxLeft = imgW - markW,maxTop = imgH - markH,markLeft = mouseX,markTop = mouseY;
// A moving distance of the magnifier
markLeft = (markLeft < 0) ? 0 : min(markLeft, maxLeft);markTop = (markTop < 0) ? 0 : min(markTop, maxTop);
// A moving rate of the magnifier
var perX = markLeft / imgW,perY = markTop / imgH;
// Handler position
var markL = markLeft + marginLeft,markT = markTop + marginTop;
$mark.css({display: 'block',left: markL+'px',top: markT+'px'});
// Image preview position
var preboxH = $prebox.outerHeight(),boxMarginL = magnifier_intval($target.css("marginLeft"));
$prebox.width(markW * scaleX).height(markH * scaleY).css({left: (markL + markW + boxMarginL + 5)+'px',top: max(markT - (preboxH - markH) / 2, 0)+'px'});
// Image position
$bigbox.css({display: 'block',left: -(perX * $bigbox.outerWidth())+'px',top: -(perY * $bigbox.outerHeight())+'px'});
// Unset
$target = $bigbox = $mark = $img = $prebox = null;
}).bind("mouseleave", function(e){
$layercnt.css("overflow", 'hidden');
$('.wp-magnifier_big, #wp-magnifier_boxbig, .wp-magnifier_mark',layer).removeAttr("style");
});
// <<= maxw) || (height >= maxh)) {
var direct = (width >= maxw) ? (width >= height) : (height < width);
// Horizontal
if (direct) {
$prdimg.width(maxw).height("auto");tmph = $prdimg.height();
$prdimg.css("margin", ((maxh - tmph) / 2)+'px');
}
// Vertical
else {
$prdimg.height(maxh).width("auto");tmpw = $prdimg.width();
$prdimg.css("margin", '0 '+((maxw - tmpw) / 2)+'px');
}
}
}else return;
});
}