(function($) {
$(function () {
$(window).load(function () {
popupAutoResize(); //팝업리사이징
});
});
function popupAutoResize() { //팝업리사이징
var w = $('body > div > div').innerWidth();
var h = $('body > div > div').innerHeight();
//window.resizeTo(w, h);
var mw = window.outerWidth - window.innerWidth;
var mh = window.outerHeight - window.innerHeight;
// window.resizeBy(mw, mh);
window.resizeTo(w + mw, h + mh);
if (msieversion() < 9 && msieversion() != 0) {
mw = $(document).outerWidth() - $(window).width();
mh = $(document).outerHeight() - $(window).height();
window.resizeBy(mw, mh);
}
}
function msieversion() { // 익스버전체크
var ua = window.navigator.userAgent
var msie = ua.indexOf ( "MSIE " )
if ( msie > 0 ) // If Internet Explorer, return version number
return parseInt (ua.substring (msie+5, ua.indexOf (".", msie )))
else // If another browser, return 0
return 0
}
})(jQuery);
디츠
“말은 쉽지, 코드를 보여줘.”
“Talk is cheap. Show me the code.”
– 리누스 토르발스(Linus Torvalds)