Community

2010.01.08 19:45

스크립트 오류

조회 수 2281 추천 수 240 댓글 2
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부 수정 삭제
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부 수정 삭제
Extra Form


안녕하세요?
드림위버 CS4 잘 배우고 있습니다.

하나, 저서 181 페이지에 있는 '아이프레임 문서 크기에 따라 자동으로 변하는 아이프레임' 을
따라 하던 중 스크립트 오류가 계속 발생해 어떤 연유인지 여쭙고자 합니다.

아래는 따라하기 소스입니다. 오류 캡쳐도 첨부했습니다.

^^ 시간 허락되시면 메일로도 알려주시면 안될까 합니다.

(따라하기 소스)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>해수욕장</title>
<style type="text/css">
<!--
body {
        margin-left: 0px;
        margin-top: 0px;
}
.style7 {
        font-family: "돋움", "돋움체";
        font-size: 9pt;
        color: #666666;
        line-height: 200%;
}
a {
        font-family: 돋움, 돋움체;
        font-size: 9pt;
        color: #990099;
}
a:hover {
        color: #990099;
        text-decoration: underline;
}
a:link {
        text-decoration: none;
}
a:visited {
        text-decoration: none;
        color: #990099;
}
a:active {
        text-decoration: none;
        color: #990099;
}
-->
</style>
<script language="javascript">
function control(){
        sea.height=iframe.document.body.scrollheight+10;
        sea.width=iframe.document.body.scrollwidth;}
        </script>
        </head>

<body>
<table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="215" valign="top"><img src="images/left.gif" width="215" height="275" /></td>
    <td width="570" align="center" valign="top"><table width="570" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top"><img src="images/title.gif" width="570" height="47" /></td>
      </tr>
      <tr>
        <td height="47" align="center" valign="middle"><table width="546" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="136" align="left" valign="top"><span class="style7">☞ 예송리 해수욕장</span></td>
            <td width="136" align="left" valign="top"><span class="style7">☞ 중리 해수욕장 </span></td>
            <td width="136" align="left" valign="top"><span class="style7">☞ 통리 해수욕장</span></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td align="center" valign="top" id="sea"><iframe src="beach1.html" name="iframe" width="100%"  marginwidth="0" height="100%" marginheight="0" scrolling="Auto" frameborder="0" id="iframe" onload="control()" ></iframe></td>
      </tr>
    </table></td>
    <td width="215" valign="top"><img src="images/banner.gif" width="215" height="354" /></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="1000" height="85" align="left" valign="top" background="images/bottom.gif"> </td>
  </tr>
</table>
</body>
</html>
  • ?
    Drkoh 2010.01.13 10:48
    아이고 답변이 늦어 죄송합니다.
    요즘 회사업무가 많아서 ... ㅠㅠ 살펴볼 겨를이 없었습니다...

    일단...스크립의 오류는....오타인것 같습니다.




    이부분처럼 scrollHeight나 scrollWidth는 H와 W를 대문자로 입력하셔야 합니다.
    둘다 소문자 인듯 합니다.

    [Dr.KOH]
  • ?
    Drkoh 2010.01.13 17:32
    앗 위에 소스가 안나왔네요 ㅠㅠ


    님이 쓰신 소스에는 scrollHeight나 scrollWidth가 중간에 소문자로 되어 있어서..오류가 난것 입니다.^^

    메일 주소는? 몰라서 패스~ ^^

List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 도배글때문에 당분간 질문은 메일로받겠습니다. Drkoh 2012.01.13 1444
공지 게시판에는 고운말을 사용합시다^^ Drkoh 2009.10.23 2158
공지 답변이 늦어질수 있으니 양해바랍니다. Drkoh 2009.06.09 2247
공지 AutoCAD2008 기본+활용 샘플파일에 대해서... Drkoh 2009.01.19 2429
공지 AutoCAD2008기본+활용 부록시디 설치법 _ 주의 사항 Drkoh 2008.05.06 3634
54 안녕하세요 드림위버 cs4 지대로 배우기 구매자 입니다 질문있습니다!!! 1 tale 2010.11.19 1895
53 AutoCAD 2008 기본+활용 예제 파일 요청드립니다. 1 이명연 2010.06.30 1903
52 오토캐드 부록 시디파일이요 1 진솔비 2009.08.04 1905
51 좀더 초보자에게 가깝고 기본에 충실하며 좀더 자세한 내용을 바랍니다 1 초보자 2011.11.30 1906
50 선생님 추석 잘 보내세요... 1 이윤찬 2006.10.05 1911
49 CAD독학을 하려는데요. 1 mg 2009.05.21 1913
48 치명적은 오류로.. 설치가 안된다는데요.. 3 임지혜 2008.06.11 1915
47 질문이요 1 우정미 2010.01.26 1922
46 또 질문요;;ㅎ 1 이형윤 2009.11.03 1927
45 여러개의 도면 중 한개를 프린터 하고 싶다면... 1 이승훈 2009.12.09 1935
44 108페이지 ttr과 2p를 이용하여 그리는 도형과 관련하여 질문 드립니다. 1 김명수 2009.04.06 1948
43 연습문제 해결이 어렵네요 박용진 2009.02.01 1951
42 터잡기 캐드2008에 Practice 에서 궁금한점... 1 file 박영민 2010.01.18 1959
41 기초캐드 사용방법 1 주종성 2008.03.27 2026
40 오토캐드 2008 기본+활용 책을 샀는데요. 거기에 시디가 잘 안돼서 물어봐요 1 박상욱 2008.10.14 2034
39 acad2008 CD분실 부록 요청 1 정혁 2010.01.18 2046
38 안녕하세요... 원그리기가.. 잘 ^^;; 1 유영인 2008.04.12 2061
37 드림위버 텍스트 관련 하나 더 질문드립니다. 1 이중희 2010.01.08 2065
36 음... 감각있어... 홈피오픈 추~~카... 캬!! 1 서ㄹ하 2005.11.18 2071
35 터잡기 autocad 2008 부록 CD2 내용 요청 건 1 정우식 2009.02.17 2081
Board Pagination Prev 1 ... 5 6 7 8 9 10 11 12 13 14 Next
/ 14