P

어떻게고쳐야 에러가안날까요?

<body onLoad="ck(1);">

<table width="100" cellpadding="0" cellspacing="0">
<tr><td onClick=ck(2) width="100" height="18" style="cursor:hand;">강남구</td></tr>
<tr><td onClick=ck(3) width="100" height="18" style="cursor:hand;">강동구</td></tr>
<tr><td onClick=ck(4) width="100" height="18" style="cursor:hand;">강북구</td></tr>
<tr><td onClick=ck(5) width="100" height="18" style="cursor:hand;">강서구</td></tr>
<tr><td onClick=ck(6) width="100" height="18" style="cursor:hand;">추가메뉴</td></tr>

</table>

<div id=v style="width:100%; height:100%; position:absolute; left:115px; top:15px; z-index:1;"></div>

<span id=test2 style="display:none">
메뉴추가1
</span>




<span id=test3 style="display:none">
메뉴추가2
</span>


<span id=test4 style="display:none">
메뉴추가3</span>


<span id=test5 style="display:none">
메뉴추가4</span>


<span id=test6 style="display:none">
메뉴추가5</span>



<script>
function ck(n) {
v.innerHTML=document.all('test'+n).innerHTML;}</script>



인데 왜 계속 에러가 날까요?..
고쳐봤는데도 다시돌려보면안되네요
|

댓글 2개

</body> 가 없네요 <<그냥 없는거 말하는거 뿐입니다 ;;
document.getElementById("v").innerHTML = ~~

이렇게 변경하세요
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 1,489
17년 전 조회 849
17년 전 조회 825
17년 전 조회 1,007
17년 전 조회 759
17년 전 조회 1,855
17년 전 조회 805
17년 전 조회 750
17년 전 조회 846
17년 전 조회 978
17년 전 조회 1,338
17년 전 조회 858
17년 전 조회 812
17년 전 조회 759
17년 전 조회 1,750
17년 전 조회 739
17년 전 조회 1,674
17년 전 조회 975
17년 전 조회 1,383
17년 전 조회 1,037