스크립트 썸네일형 리스트형 li 가로 자동정렬 $(document).ready(function(){ $(window).resize(function(){ var lnbLength = $('.lnb ul > li > a').length; var lnbW = $('.lnb ul').width(); $(".lnb > ul > li").css({width:lnbW/lnbLength}); }).resize(); }); 더보기 아이프레임 모바일 버그 스크롤 제어 //아이프레임 모바일 스크롤제어 function calcHeight() { //find the height of the internal page var the_height= document.getElementById('the_iframe').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe').height= the_height; } 더보기 현재창닫기 //현재창닫기 $(function(){ $('#window-btn').click(function(){ if ( $.browser.msie ) { window.opener='Self'; window.open('','_parent',''); window.close(); } else { window.close(); // 일반적인 현재 창 닫기 window.open('about:blank','_self').self.close(); // IE에서 묻지 않고 창 닫기 } }) }); 현재창닫기 더보기 모바일 리사이즈 아이프레임 스크롤컨트롤 function resizeIframe(fr) { fr.setExpression('height',ifrm.document.body.scrollHeight); fr.setExpression('width',ifrm.document.body.scrollWidth); } function calcHeight() { //find the height of the internal page var the_height= document.getElementById('the_iframe').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe').height= the_height.. 더보기 이전 1 다음