{"id":325,"date":"2012-08-18T15:38:39","date_gmt":"2012-08-18T06:38:39","guid":{"rendered":"http:\/\/auctionpro.co.kr\/WPress\/?p=325"},"modified":"2012-08-18T15:55:34","modified_gmt":"2012-08-18T06:55:34","slug":"iframe-%ec%82%ac%ec%9a%a9%ec%8b%9c-resize","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=325","title":{"rendered":"iframe \uc0ac\uc6a9\uc2dc resize"},"content":{"rendered":"<p>1)\u00a0iframe \u00a0\uc0ac\uc6a9 \uc0ac\uc774\ud2b8 root \uc5d0 \uc544\ub798 \ub0b4\uc6a9 \ud30c\uc77c \u00a0resize.htm<br \/>\n&lt;script language=javascript&gt;<br \/>\nvar arrtmp = location.href.split(&#8220;?&#8221;);<br \/>\nvar Params = arrtmp[1].split(&#8220;&amp;&#8221;);<br \/>\nvar hei = Params[0];<br \/>\nvar focus = Params[1];<br \/>\nvar win = parent.parent.document.getElementById(&#8220;iframe1&#8221;);<br \/>\nwin.height = hei;<\/p>\n<p>if(focus == &#8220;top&#8221;){<br \/>\nparent.parent.scrollTo(0, 0) \/\/iframe \ud654\uba74 \ubcc0\uacbd\uc2dc \uc0c1\uc704\ub85c \ud3ec\ucee4\uc2a4 \uac00\uae30<br \/>\n}<br \/>\n&lt;\/script&gt;<\/p>\n<p>2) iframe \u00a0\uc0ac\uc6a9 \uc0ac\uc774\ud2b8<\/p>\n<p>&lt;iframe name=&#8221;iframe1&#8243; id=&#8221;iframe1&#8243; src=&#8221;http:\/\/iframe\uc0ac\uc774\ud2b8.co.kr?open_site=http:\/\/\uc0ac\uc6a9\uc0ac\uc774\ud2b8.co.kr&#8221; width=&#8221;1000&#8243; height=&#8221;500&#8243; marginwidth=&#8221;0&#8243; marginheight=&#8221;0&#8243; scrolling=no frameborder=0&gt;&lt;\/iframe&gt;<\/p>\n<p>3) iframe \uc0ac\uc774\ud2b8 \uc18c\uc2a4\uc5d0<\/p>\n<p>&lt;iframe id=&#8221;iframe2&#8243; name=&#8221;iframe2&#8243; width=0 height=0 frameborder=0 marginheight=0 marginwidth=0 scrolling=no src=&#8221;about:blank&#8221; style=&#8221;visibility:hidden;&#8221;&gt;&lt;\/iframe&gt;<br \/>\n&lt;script language=&#8221;vbscript&#8221;&gt;<br \/>\nsub window_onload()<br \/>\ndocument.frames(&#8220;iframe2&#8221;).document.URL = &#8220;http:\/\/iframe\uc0ac\uc774\ud2b8.co.kr\/resize.htm?&#8221; &amp; document.body.scrollHeight+20<br \/>\nend Sub<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script language=&#8221;vbscript&#8221;&gt;<br \/>\nSub vbScript_frameHeightChange()<br \/>\ndocument.frames(&#8220;iframe2&#8221;).document.URL = &#8220;http:\/\/iframe\uc0ac\uc774\ud2b8.co.kr\/resize.htm?&#8221; &amp; document.body.scrollHeight+200<br \/>\nEnd Sub<br \/>\n&lt;\/script&gt;<\/p>\n<p>&lt;iframe name=nm_iframe border=0 frameborder=0 scrolling=no src=&#8221;about:blank&#8221; width=0 height=0&gt;&lt;\/iframe&gt;<\/p>\n<p>&lt;script language=javascript&gt;<\/p>\n<p>function SelfResize(sForcus) {<br \/>\nvar ifrContentsTimer;<\/p>\n<p>var iwid=1000; var ihei = document.body.scrollHeight+10;<\/p>\n<p>if(navigator.appVersion.indexOf(&#8220;MSIE 7.&#8221;)&gt;=0 || navigator.appVersion.indexOf(&#8220;MSIE 8.&#8221;)&gt;=0 || navigator.appVersion.indexOf(&#8220;MSIE 9.&#8221;)&gt;=0) {<br \/>\nif(parent!=self &amp;&amp; ihei&gt;0) {<br \/>\nif(document.body.readyState == &#8220;complete&#8221;) {<br \/>\nnm_iframe.location.href = &#8220;http:\/\/iframe\uc0ac\uc774\ud2b8.co.kr\/resize.htm?&#8221;+ ihei +&#8221;&amp;&#8221;+ sForcus;<br \/>\n}<br \/>\n}<br \/>\n} else {<br \/>\nif(parent!=self) self.resizeTo(iwid, ihei);<br \/>\n}<br \/>\n}<br \/>\nsetTimeout(&#8220;SelfResize(&#8216;top&#8217;)&#8221;,100); \/\/delaytime 0.1\ucd08<\/p>\n<p>&lt;\/script&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>1)\u00a0iframe \u00a0\uc0ac\uc6a9 \uc0ac\uc774\ud2b8 root \uc5d0 \uc544\ub798 \ub0b4\uc6a9 \ud30c\uc77c \u00a0resize.htm &lt;script language=javascript&gt; var arrtmp = location.href.split(&#8220;?&#8221;); var Params = arrtmp[1].split(&#8220;&amp;&#8221;); var hei = Params[0]; var focus <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=325\" title=\"iframe \uc0ac\uc6a9\uc2dc resize\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[32],"tags":[],"class_list":["post-325","post","type-post","status-publish","format-standard","hentry","category-javascript"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=325"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/325\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}