안녕하십니까!
팔공산님의 레이아웃 . 질문에 자세한 답변 등으로 문하우스를 교본삼아 홈페이지를 만들어가고 있는 언약입니다
다시 한번 감사드리구요!
홈페이지가 엉성하지만 거의 완성 되가고 있는데 이것때문에 거의 10여일째 고생중입니다
제가 쓰고 있는 호스팅 업체가 jungbo.net이라는 곳인데 이곳에서 제공하는 게시판이 있습니다
이 게시판을 몇년째 사용하는 중이라 나름대로 자료들이 꽤 있고, 게시판도 6가지 정도 됩니다
그리고 문하우스에서 Tip란에서 소개해준 PhotoGallery2등 도메인 경로가 틀린 게시판 몇가지가 더 있습니다
이것들을 XE로 홈페이지를 꾸미면서 레이아웃을 적용시키려고 하는데
기존의 게시판데이터를 xe데이터로 변환하는 방법이 없다고 하여 페이지에 내용직접 추가하여 iframe으로 삽입하려 합니다
제로보드 홈페이지 등 웹에서 에서 검색하여서 iframe 세로길이 자동조절에 관한 스크립트와 iframe 삽입문구를 넣었는데(html작성)
페이지에 스크립트 문구는 삭제되고(아래 Tip의 노란부분에 해당하는)
iframe 삽입문구만(빨간색부분) 남습니다
(제가 검색한 내용들을 보면 스크립트와 iframe삽입문구를 페이지에 같이 작성하라고 되어있습니다)
그리고 iframe의 크기가 조정 되었다가, 안 되었다가 합니다
O 서론이 길어졌는데 xe에서 페이지에는 스크립트 적용이 안되는 것인지요?
O 그리고 아래의 내용은 문하우스의 xe Tip란에서 복사한 것인데 작성일이 2007년 10월에 작성된 것이던데 xe1.31(최신버전)에서 적용 가능한 것인가요?
O 그리고 도메인 경로가 틀린 게시판의 iframe에도 세로길이가 자동조정되게 하는 방법이 있을까요?
아래의 Tip도 적용해보고, 스크립트가 지워지지 않도록 하는 Tip도 적용해 보았는데 같은 결과가 나오더라구요
며칠째 검색을 하고도 뽀쪽한 해답을 찾지 못해서 팔공산님께 죄송합을 무릅쓰고 여쭈어 봅니다
<문하우스 Tip에서 복사한 내용>
function resizeFrame(iframeObj){ /* 높이 다시설정 */ /* 넓이 다시설정 */ this.scrollTo(1,1); |
위의 소스를
/zbxe/layouts/사용하는 레이아웃/js/
안에 있는 xxx.js(예 ; xe_official.js)파일을 편집기로 열어서 상단이나 하단에 복사해 넣으시면 됩니다.
그리고 페이지에 iframe을 작성하시면 됩니다.
<P align=center><IFRAME style="WIDTH: 100%" src="/zbxe/?mid=sale&act=dispBoardWrite" frameBorder=o scrolling=no onload=resizeFrame(this)></IFRAME></P>
참고로 전체 사이트에 이 소스를 적용할려면
/zbxe/common/js/common.js 파일안에 위의 소스를 적당한 곳에 복사해 넣으시면 됩니다
iframe사용을 해본지가 오래되어서 가물거리네요.
기억나는대로 답변드립니다.
일단 js파일안에 세로길이 자동 조절되는 스크립트는 사용하시지 않아도 됩니다.
페이지수정에서 "내용직접추가"해서 에디터창에 html로 iframe소스 적용하시고 저장하신후