(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);
'javascript, jquery' 카테고리의 다른 글
윈도우창 self.close 묻지않고 닫기 (0) | 2015.10.26 |
---|---|
마우스 따라다니는 메뉴 (0) | 2015.10.01 |
jquery - ajax 파일 업로드 (0) | 2015.09.19 |
href에서 파라메터값 분리하기 (0) | 2015.09.17 |
url 주소를 클립보드로 복사하기 (0) | 2015.09.16 |