fixing new zoomer
This commit is contained in:
@@ -94,6 +94,7 @@ function showbigimage(i) {
|
|||||||
dc.style.display='block';
|
dc.style.display='block';
|
||||||
if (zoom) {
|
if (zoom) {
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
var options = {
|
var options = {
|
||||||
zoomType: 'innerzoom',
|
zoomType: 'innerzoom',
|
||||||
preloadImages: false,
|
preloadImages: false,
|
||||||
@@ -103,7 +104,16 @@ function showbigimage(i) {
|
|||||||
$('#imagesingle').css('height',height);
|
$('#imagesingle').css('height',height);
|
||||||
$('#imagesingle').css('display','none');
|
$('#imagesingle').css('display','none');
|
||||||
// hide the distorted imagesingle
|
// hide the distorted imagesingle
|
||||||
|
var bigImg=new Image();
|
||||||
|
bigImg.src=encodeURIComponent(imagelist[i]);
|
||||||
$('.linktobig').jqzoom(options);
|
$('.linktobig').jqzoom(options);
|
||||||
|
$(bigImg).load(function() {
|
||||||
|
if (bigImg.width < width) {
|
||||||
|
var leftoffset=(width - bigImg.width)/2;
|
||||||
|
$('.zoompad').css('left',leftoffset);
|
||||||
|
$('body').css('overflow-x','hidden');
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@@ -632,6 +642,10 @@ function keypressed(e) {
|
|||||||
if (currentimage>(imagelist.length-1)) { currentimage=0; }
|
if (currentimage>(imagelist.length-1)) { currentimage=0; }
|
||||||
showimage(currentimage);
|
showimage(currentimage);
|
||||||
}
|
}
|
||||||
|
// a: all thumbs
|
||||||
|
if (unicode==65) {
|
||||||
|
allthumbs();
|
||||||
|
}
|
||||||
// f: fullscreen
|
// f: fullscreen
|
||||||
if (unicode==70) {
|
if (unicode==70) {
|
||||||
flipfullscreen();
|
flipfullscreen();
|
||||||
@@ -895,6 +909,14 @@ f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){fo
|
|||||||
"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in
|
"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in
|
||||||
e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);
|
e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);
|
||||||
|
|
||||||
|
/* jQuery related stuff */
|
||||||
|
|
||||||
|
$(function(){
|
||||||
|
$(window).resize(function(){
|
||||||
|
showimage(currentimage);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* jQzoom Evolution Library v2.3 - Javascript Image magnifier
|
* jQzoom Evolution Library v2.3 - Javascript Image magnifier
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ img {
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-family: Tahoma;
|
font-family: Tahoma;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border: 1px solid #CCC;
|
/*border: 1px solid #CCC;
|
||||||
/*background-color: white;*/
|
/*background-color: white;*/
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
@@ -278,7 +278,6 @@ img {
|
|||||||
filter: alpha(opacity = 60);
|
filter: alpha(opacity = 60);
|
||||||
z-index:120;
|
z-index:120;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
border:1px solid #CCC;
|
|
||||||
z-index:101;
|
z-index:101;
|
||||||
cursor:crosshair;
|
cursor:crosshair;
|
||||||
}
|
}
|
||||||
@@ -301,14 +300,12 @@ img {
|
|||||||
left:110%;
|
left:110%;
|
||||||
top:40px;
|
top:40px;
|
||||||
background:#FFF;
|
background:#FFF;
|
||||||
z-index:6000;
|
|
||||||
height:auto;
|
height:auto;
|
||||||
z-index:10000;
|
|
||||||
z-index:110;
|
z-index:110;
|
||||||
}
|
}
|
||||||
.zoomWrapper{
|
.zoomWrapper{
|
||||||
position:relative;
|
position:relative;
|
||||||
border:1px solid #999;
|
|
||||||
z-index:110;
|
z-index:110;
|
||||||
}
|
}
|
||||||
.zoomWrapperTitle{
|
.zoomWrapperTitle{
|
||||||
@@ -337,7 +334,6 @@ img {
|
|||||||
|
|
||||||
}
|
}
|
||||||
.zoomWrapperImage img{
|
.zoomWrapperImage img{
|
||||||
border:0px;
|
|
||||||
display:block;
|
display:block;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
z-index:101;
|
z-index:101;
|
||||||
|
|||||||
Reference in New Issue
Block a user