"); } } $('#textPicAll').append(""); $('#maxCenterImg').load(function getThisSize() { $('#maxCenterImg').css("width", "auto"); maxCenterImg = document.getElementById("maxCenterImg"); reImgWidth = maxCenterImg.width; thisImgSize = reImgWidth; }) function bigMinOnPic(args) { if (args) { $('#maxCenterImg').css("width", thisImgSize * 1.1); } else { $('#maxCenterImg').css("width", thisImgSize / 1.1); } thisImgSize = document.getElementById("maxCenterImg").width; } function resetOnPic() { $('#maxCenterImg').css("width", reImgWidth); thisImgSize = document.getElementById("maxCenterImg").width; } $('.matcList').click(function () { $('#maxCenterImg').attr('Src', $(this).attr('Src')); getThisSize(); });