이거 해결해주시는분께 치킨쏩니다~~
http://schema.org/Organization" style="color: rgb(0, 0, 0);">http://schema.org/Organization">
var iframeids=["myframe"]
var iframehide="yes"
var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=getFFVersion>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers
function resizeCaller() {
var dyniframe=new Array()
for (i=0; i if (document.getElementById) resizeIframe(iframeids[i]) if ((document.all || document.getElementById) && iframehide=="no"){ var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i]) tempobj.style.display="block" } } }
function resizeIframe(frameid){ var currentfr=document.getElementById(frameid) if (currentfr && !window.opera){ currentfr.style.display="block" if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax currentfr.height = currentfr.Document.body.scrollHeight; if (currentfr.addEventListener) currentfr.addEventListener("load", readjustIframe, false) else if (currentfr.attachEvent){ currentfr.detachEvent("onload", readjustIframe) // Bug fix line currentfr.attachEvent("onload", readjustIframe) } } }
function readjustIframe(loadevt) { var crossevt=(window.event)? event : loadevt var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement if (iframeroot) resizeIframe(iframeroot.id); }
function loadintoIframe(iframeid, url){ if (document.getElementById) document.getElementById(iframeid).src=url } if (window.addEventListener) window.addEventListener("load", resizeCaller, false) else if (window.attachEvent) window.attachEvent("onload", resizeCaller) else window.onload=resizeCaller
body{
margin: 0px;
padding: 0px;
}
#bar{
border: 1px red solid;
}
#img01{
position: fixed;
background-color: white;
width: 100%;
height: 160px;
background-image: url(uuu.jpg);
/*background-size: 50%;*/
background-repeat: no-repeat;
/*background-attachment: fixed;*/
}
body{
margin: 0px;
padding: 0px;
}
#bar{
border: 1px red solid;
}
#img01{
position: fixed;
background-color: white;
width: 100%;
height: 200px;
background-image: url(uuu.jpg);
/*background-size: 50%;*/
background-repeat: no-repeat;
/*background-attachment: fixed;*/
}
![]()
http://url.com/" style="color: rgb(0, 0, 0);">http://url.com"> |
http://url.com/" style="color: rgb(0, 0, 0);">http://url.com')"> http://url.com/" style="color: rgb(0, 0, 0);">http://url.com')"> http://url.com/" style="color: rgb(0, 0, 0);">http://url.com')"> http://url.com/" style="color: rgb(0, 0, 0);">http://url.com')"> http://url.com/" style="color: rgb(0, 0, 0);">http://url.com')"> http://url.com/" style="color: rgb(0, 0, 0);">http://url.com')"> http://url.com/" style="color: rgb(0, 0, 0);">http://url.com')"> http://url.com/" style="color: rgb(0, 0, 0);">http://url.com')"> http://url.com/" style="color: rgb(0, 0, 0);">http://url.com')"> http://url.com/" style="color: rgb(0, 0, 0);">http://url.com')">
|
if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat')
{
cot_t1_DOCtp="_top:expression_(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression_(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}";
}
else
{
cot_t1_DOCtp="_top:expression_(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression_(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}";
}
var cot_tl_bodyCSS='* html {background:url(빈 이미지 blank.gif) fixed;background-repeat: repeat;background-position: right bottom;}';
var cot_tl_fixedCSS='#cot_tl_fixed{position:fixed;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'_position:absolute;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'z-index:1;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'width:100%;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'text-align:center;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'bottom:0px;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'right:0px;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'clip:rect(0 100% 100% 0);';
var cot_tl_fixedCSS=cot_tl_fixedCSS+cot_t1_DOCtp;
document.write('');
#cot_tl_fixed{margin: 0 auto; width:100%; height:30; background-color:#fff; color:white; border-left:1px solid #333333; border-right:1px solid #333333; float:left; text-align:center; vertical-align:middle;}
scrolling=no 이거는 아예 없어져서 스크롤을 이용을 못해서 안되고요..
이중스크롤이라서 눈에 안보였으면 하거든요..
어떤분이 예문으로
self.resizeTo(document.body.scrollWidth , document.body.scrollHeight );
parent.scrollTo(0,0);
이거 하면된다는데
어디다가 끼어야하는지...
iframe에 들어가는 문서 맨 마지막에 추가해도 다른곳곳에 해도 안되더라구요 ㅠㅠ
이상 초짜의 질문이었습니다...부탁드려요... 이중스크롤... 숨기기..
추가로 ... 가능하다면 페이지 로딩이 되었을때
아이프레임 스크롤이 1/3정도 내려오게끔도 부탁드립니다.
소스가 너무 뒤죽박죽이라서 손볼수가없네요 ㅠ.ㅠ
소스 적용해서 주시면 감사하겠습니다 고수님들~~ㅠ 굽신굽신...
답변 3개
</strong></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><html></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><head></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><meta charset="UTF-8"></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><title>여긴제목</title></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> </b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><style></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b>body {</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> padding: 0px;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> margin: 0px;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> overflow: hidden;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b>}</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b>.header {</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> text-align: center;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> background: antiquewhite;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> height: 15%;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> max-height: 300px;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b>}</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b>.content {</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> height: 80%;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> background: aquamarine;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><span style="white-space:pre"> </span>overflow-x:hidden;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b>}</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b>.footer {</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> background: burlywood;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> height: 5%;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b>}</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b>iframe#conFraim {</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> width: 100%;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> height: 100%;</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><span style="white-space:pre"> </span>border: 0px;</b></span></span></p><p><span style="white-space: pre; font-size: 12px; font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><b> </b></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b>
</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b>}</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b></style></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><script type="text/javascript"></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> </b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b> </b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b></script></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b></head></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><body></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><div class="header"></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><span style="white-space:pre"> </span>여긴 헤더</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b></div></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><div class="content"></b></span></span></p><p><b style=""><span style="color: rgb(127, 127, 127); font-family: Arial, 돋움, Dotum; font-size: 12px; white-space: pre;"> </span><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><iframe id="conFraim" class="con-fraim" overflow-x='hidden' src="</span></span><span style="font-family: Arial, 돋움, Dotum; color: rgb(0, 0, 238);"><span style="font-size: 12px;"><u><a href="<a href="http://lyrics.url.com/#lyrics_pages" target="_blank" rel="noopener noreferrer">http://lyrics.url.com/#lyrics_pages</a>"><a href="http://lyrics.url.com/#lyrics_pages" target="_blank" rel="noopener noreferrer">http://lyrics.url.com/#lyrics_pages</a></a></u></span></span><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;">"</span></span><span style="color: rgb(127, 127, 127); font-family: Arial, 돋움, Dotum; font-size: 12px; white-space: pre;"> </span><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;">></iframe></span></span></b></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b></div></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><div class="footer"></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b><span style="white-space:pre"> </span>여긴 푸터</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b>
</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b></div></b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b>
</b></span></span></p><p><span style="font-family: Arial, 돋움, Dotum; color: rgb(127, 127, 127);"><span style="font-size: 12px;"><b></body></b></span></span></p><p><strong style="color: rgb(127, 127, 127); font-family: Arial, 돋움, Dotum; font-size: 12px;">
</strong></p><p><strong style="color: rgb(127, 127, 127); font-family: Arial, 돋움, Dotum; font-size: 12px;">
ifraim 속에 다른 도메인 사이트를 가져오는것만아니면 아래 코드가 유효합니다만
그러치 않으네요..ㅋㅋ Dom 점근 권한땜에 스크롤이안되네요 ㅋㅋㅋ
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
크롬같은경우엔.. resizeTo 가 안될수 있어요..
예제로 하나 간단히 만들어서 보여드립니다.
자식창 로딩될때 자기 페이지의 width,heigt 보내서 부모창에서 다시 제어하시면 됩니다.
부모창
댓글을 작성하려면 로그인이 필요합니다.
제가 너무 쉽게 생각했나 싶으네요 ^^
일단 해당 소스를 함수로 바꿔서
</p><p>funtion self_resize() {</p><p> self.resizeTo(document.body.scrollWidth, document.body.scrollHeight);</p><p> parent.scrollTo(0,0);</p><p>}</p><p>
</p><p><body onload="self_resize();"></p><p>
여기에 넣어보세요
다른분들은 너무 쉬운문제라 답이 없나보네요 ^^
답변에 대한 댓글 1개
혹시 이걸 삽입해서 이메일(메모장)으로 보내주시면 안될까용?ㅠ.ㅠ
전혀 몰라서 복붙하면 적용되게끔하려구용..
보내실떄에 카톡아이디도 ... 보내주시면
감사한 마음이 조금이라도 전해지길 기프티콘 보내드릴게용...
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인







