我這裏有一些代碼和IM努力找出它去錯了,我知道的一些JavaScript代碼是錯誤的,但我怎麼改正它,非常感謝我的代碼出了什麼問題?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Numbers Games</title>
<link rel="stylesheet" type="text/css" href="style-home.css">
</head>
<body>
<div id="header"
<h1>Numbers Game</h1>
</div>
<p id="ParQuestion">What is five thousand and thirty three in numbers.</p>
<input id="txt_Ans" type="text" />
<input id="btn_Start" type="button" value="Start"
onclick="btn_Start_OnClick()" /><br />
<input id="btn_Check" type="button" value="Check" onclick="btn_Check_OnlClick()" />
<div id="Scoreboard">
<img id="scoreOn1" src="Pictures/Scorefaceoff1.gif" height="50px" width="50px" />
<img id="scoreOn2" src="Pictures/Scorefaceoff2.gif" height="50px" width="50px" />
<img id="scoreOn3" src="Pictures/Scorefaceoff3.gif" height="50px" width="50px" />
<img id="scoreOn4" src="Pictures/Scorefaceoff4.gif" height="50px" width="50px" />
<img id="scoreOn5" src="Pictures/Scorefaceoff5.gif" height="50px" width="50px" />
</div>
<p id="ParComment"></p>
</body>
</html>
<script language="javascript">
function btn_Check_OnClick(){
if txt_Ans.value = "5033"
parRes.InnerText=ParComment.value;
}else{
ParComment.InnerText="Wrong, Try Again";
}
}
</sript>
歡迎#1。你覺得它是什麼 ?到目前爲止你做了什麼 ?爲了讓我們幫助你證明你做了實際的研究。 :) –
並說了,'btn_Check_onlClick()'?特定函數在哪裏定義?並且在腳本塊中有一個額外的'}'來開始。 –