P

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

· 2008-12-14 (일) 15:43:40 · 1039 · 2
<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 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
08-12-15 조회 1,034
08-12-15 조회 1,035
08-12-15 조회 1,546
08-12-15 조회 905
08-12-15 조회 887
08-12-15 조회 1,071
08-12-15 조회 811
08-12-14 조회 1,907
08-12-14 조회 862
08-12-14 조회 803
08-12-14 조회 904
08-12-14 조회 1,040
08-12-14 조회 1,395
08-12-14 조회 923
08-12-14 조회 875
08-12-14 조회 828
08-12-14 조회 1,808
08-12-14 조회 796
08-12-14 조회 1,737
08-12-14 조회 1,043