게시판 그크롤바 안나오게 하는 방법 좀..알려주세요

11111.jpg
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

기존에 사용하던 홈페이지에 그누보드 갤러리 스킨을 적용 해보았는데요

이미지를 많이 첨부하니까....

게시판 자체의 스크롤이 생겨서 이상해요

게시판 자체의 스크롤이 안생기게 한는 방법 좀 알려주세요

해당 스샷 첨부합니다

해당 페이지에 iframe 으로 게시판을 불러왔는데요

그래서 스크롤이 생긴다는것만 알고있습니다ㅏ

그럼 iframe 을 사용하지않고 게시판을 불러오는 방법및 소스 좀 알려주세요

첨부파일

11111.jpg (127.6 KB)
0회 2008-08-09 10:54
|

댓글 1개

스크롤바만 안생기게 하시려면 iframe의 속성을 보면 scrolling이 있는데 no, auto, yes 있는데요
no를 적용하시면 되겠네요..

그게 아니라 스크롤바가 없고 iframe이 유동적으로 늘어나건 줄게 하시려면 아래 스크립트를 적용해보세요...

<script language='JavaScript' type='text/javascript'>
function resizeFrame(iframeObj){
var innerBody = iframeObj.contentWindow.document.documentElement;
oldEvent = innerBody.onclick;
innerBody.onclick = function(){ resizeFrame(iframeObj, 1);oldEvent; };
// var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
if(document.all) var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
else var innerHeight = innerBody.offsetHeight;
iframeObj.style.height = innerHeight+'px';
// var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
iframeObj.style.width = 746 + 'px'; //가로 사이즈
if( !arguments[1] ) /* 특정 이벤트로 인한 호출시 스크롤을 그냥 둔다. */
this.scrollTo(1,1);
}
</script>

<iframe id="ifr" name="ifr" src="주소" width="746px" onload="resizeFrame(this)" scrolling="no" frameborder="0"></iframe>

iframe에는 onload="resizeFrame(this)" 를 걸어주심 되겠네요..
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
17년 전 조회 781
17년 전 조회 754
17년 전 조회 686
17년 전 조회 809
17년 전 조회 1,252
17년 전 조회 914
17년 전 조회 1,120
17년 전 조회 1,531
17년 전 조회 1,211
17년 전 조회 820
17년 전 조회 818
17년 전 조회 950
17년 전 조회 2,087
17년 전 조회 836
17년 전 조회 1,570
17년 전 조회 844
17년 전 조회 934
17년 전 조회 890
17년 전 조회 721
17년 전 조회 725
🐛 버그신고