게시판 즐겨찾기
편집
드래그 앤 드롭으로
즐겨찾기 아이콘 위치 수정이 가능합니다.
[더럽] 수정수정~ 그러나 에러의 폭풍 ㅠㅠ
게시물ID : programmer_17678짧은주소 복사하기
작성자 : 고래들의노래
추천 : 0
조회수 : 931회
댓글수 : 3개
등록시간 : 2016/06/20 13:13:46
line 1, column 2 : 에러 - parse error. primary expression expected
Expected '/' and instead saw ''.
<title>aaa</title>

열심히 수정하고 나서 왜 안되나 해서 검사기에 넣고 돌리자 이런 에러메세지가 튀어나오는데 이게 도데체 왜 튀어나오는지 모르겠네요. 

<html>
<head>
<title>aaa</title>
                <meta http-equiv="content-type" content="text/html; charset=euc-kr">
</head>
 <body>
<table border=1>
<tr><td>tiger</td><td>giraff</td><td>elephant</td></tr>
<tr><td>cheetah</td><td>marten</td><td>otter</td></tr>
<tr><td>zebra</td><td>deer</td></tr>
</table>

<table border=1>
<tr><td>lion</td><td>giraff</td><td>monkey</td></tr>
<tr><td>cheetah</td><td>penguin</td><td>otter</td></tr>
<tr><td>crocodile</td><td>deer</td></tr>
</table>

<table border=1>
<tr><td>hippo</td><td>elephant</td><td>monkey</td></tr>
<tr><td>cheetah</td><td>panda</td><td>zebra</td></tr>
<tr><td>crocodile</td><td>deer</td></tr>
</table>

<table border=1>
<tr><td>wildcat</td><td>marten</td><td>penguin</td></tr>
<tr><td>otter</td><td>panda</td><td>zebra</td></tr>
<tr><td>crocodile</td><td>deer</td></tr>
</table>
  <script language=JavaScript>

var tiger, lion, giraff, hippo, elephant, monkey, cheetah, wildcat, marten, penguin, 

otter, panda, zebra, crocodile, deer = 0;

var yes1, yes2, yes3, yes4;

var yesrecord;

document.write("tiger, lion, giraff, hippo, elephant, monkey, cheetah, wildcat, marten, 

penguin, otter, panda, zebra, crocodile, deer 중에서 원하시는 동물 하나를 선택해주세요." + 

"<BR>");

document.write("이제 위의 표를 봐주세요.");


   yes1 = parseInt(prompt("생각하신 동물이 1번 표에 있으시면 1을 아니라면 0번을 눌러 

주세요."));

if(yes1 == 1)
{
tiger = tiger + 1; 
giraff = giraff + 1; 
elephant = elephant + 1; 
cheetah = cheetah + 1;
marten = marten + 1;
otter = otter +1;
zebra = zebra + 1;
deer = deer + 1;
yesrecord = yesrecord + 1;
}

   yes2 = parseInt(prompt("생각하신 동물이 2번 표에 있으시면 1을 아니라면 0번을 눌러 

주세요."));

if(yes2 == 1)
{
lion = lion + 1; 
giraff = giraff + 1; 
monkey = monkey + 1; 
cheetah = cheetah + 1;
penguin = penguin + 1;
otter = otter +1;
crocodile = crocodile + 1;
deer = deer + 1;
yesrecord = yesrecord + 1;
}

   yes3 = parseInt(prompt("생각하신 동물이 3번 표에 있으시면 1을 아니라면 0번을 눌러 

주세요."));

if (yes3 == 1)
{
hippo = hippo + 1; 
elephant = elephant + 1; 
monkey = monkey + 1; 
cheetah = cheetah + 1;
panda = panda + 1;
zebra = zebra +1;
crocodile = crocodile + 1;
deer = deer + 1;
yesrecord = yesrecord + 1;
}

   yes4 = parseInt(prompt("생각하신 동물이 4번 표에 있으시면 1을 아니라면 0번을 눌러 

주세요."));

if (yes4 == 1)
{
wildcat = wildcat + 1; 
marten = marten + 1; 
penguin = penguin + 1; 
otter = otter + 1;
panda = panda + 1;
zebra = zebra +1;
crocodile = crocodile + 1;
deer = deer + 1;
yesrecord = yesrecord + 1;
}

if (tiger == yesrecord)
{
window.alert("tiger이(가) 당신이 선택하신 동물입니다");
}

if (lion == yesrecord)
{
window.alert("lion 이(가) 당신이 선택하신 동물입니다");
}

if (giraff == yesrecord)
{
window.alert("giraff이(가) 당신이 선택하신 동물입니다");
}

if (hippo == yesrecord)
{
window.alert("hippo 이(가) 당신이 선택하신 동물입니다");
}

if (elephant == yesrecord)
{
window.alert("elephant 이(가) 당신이 선택하신 동물입니다");
}

if (monkey == yesrecord)
{
window.alert("monkey 이(가) 당신이 선택하신 동물입니다");
}

if (cheetah == yesrecord)
{
window.alert("cheetah 이(가) 당신이 선택하신 동물입니다");
}

if (wildcat == yesrecord)
{
window.alert("wildcat 이(가) 당신이 선택하신 동물입니다");
}

if (marten == yesrecord)
{
window.alert("marten 이(가) 당신이 선택하신 동물입니다");
}

if (penguin == yesrecord)
{
window.alert("penguin 이(가) 당신이 선택하신 동물입니다");
}

if (otter == yesrecord)
{
window.alert("otter 이(가) 당신이 선택하신 동물입니다");
}

if (panda == yesrecord)
{
window.alert("panda 이(가) 당신이 선택하신 동물입니다");
}

if (zebra == yesrecord)
{
window.alert("zebra 이(가) 당신이 선택하신 동물입니다");
}

if (crocodile == yesrecord)
{
window.alert("crocodile 이(가) 당신이 선택하신 동물입니다");
}

if (deer == yesrecord)
{
window.alert("deer 이(가) 당신이 선택하신 동물입니다");
}


  </script>
 </body>
</html>
전체 추천리스트 보기
새로운 댓글이 없습니다.
새로운 댓글 확인하기
글쓰기
◀뒤로가기
PC버전
맨위로▲
공지 운영 자료창고 청소년보호