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,463
17년 전 조회 823
17년 전 조회 800
17년 전 조회 978
17년 전 조회 739
17년 전 조회 1,824
17년 전 조회 774
17년 전 조회 713
17년 전 조회 814
17년 전 조회 950
17년 전 조회 1,305
17년 전 조회 830
17년 전 조회 785
17년 전 조회 728
17년 전 조회 1,720
17년 전 조회 703
17년 전 조회 1,646
17년 전 조회 949
17년 전 조회 1,351
17년 전 조회 1,002
🐛 버그신고