게시판 즐겨찾기
편집
드래그 앤 드롭으로
즐겨찾기 아이콘 위치 수정이 가능합니다.
[더러움주의] html문서에서 크롬이 한글을 읽지 못합니다.
게시물ID : programmer_17672짧은주소 복사하기
작성자 : 고래들의노래
추천 : 0
조회수 : 1358회
댓글수 : 6개
등록시간 : 2016/06/19 23:49:39
옵션
  • 본인삭제금지
방금 전까지 잘되던게 test.html:103 Uncaught SyntaxError: missing ) after argument list 이라서면서 크롬이 모든 한글을 갑자기 인식 하질 못하네요. 
잘되다가 왜이러지 영문을 모르겠습니다. ㅠㅠ 제가 봤을땐 문제가 없는것 같은데, 뭐가 문젠지좀 봐주시면 감사하겠습니다. ㅠㅠ

<html>
 <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>
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번을 눌러 

주세요."));

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

주세요."));

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

주세요."));

   yes4 = parseInt(prompt("생각하신 동물이 4번 표에 있으시면 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;
}

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;
}

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;
}

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버전
맨위로▲
공지 운영 자료창고 청소년보호