📄 ifelsecartoon2.html
字号:
<HTML><HEAD><TITLE>Cartoon Quiz</TITLE>
</HEAD>
<script>
function scoreQuestion(number,answer){
if(number==1){
if(answer=="b")
alert("correct Answer");
else
alert("Incorrect Answer");
}
else if(number==2){
if(answer=="c")
alert("correct Answer");
else
alert("Incorrect Answer");
}
else if(number==3){
if(answer=="d")
alert("correct Answer");
else
alert("Incorrect Answer");
}
}
</script>
<BODY>
<h1>CartoonQuiz</h1><p>
Answer all of question.
<form>
<B>1.What is the name of Wait?</B></p>
<input type=radio name=question1 value="a" onClick="scoreQuestion(1,this.value)">Mighty Mouse<br>
<input type=radio name=question1 value="b" onClick="scoreQuestion(1,this.value)">Mickey Mouse<br>
<input type=radio name=question1 value="c" onClick="scoreQuestion(1,this.value)">Marty Mouse<br>
<input type=radio name=question1 value="d" onClick="scoreQuestion(1,this.value)">Melvim Mouse<br>
<B>2.What is the name of Wait?</B></p>
<input type=radio name=question2 value="a" onClick="scoreQuestion(2,this.value)">Fantasia<br>
<input type=radio name=question2 value="b" onClick="scoreQuestion(2,this.value)">Hercules<br>
<input type=radio name=question2 value="c" onClick="scoreQuestion(2,this.value)">Toy Story<br>
<input type=radio name=question2 value="d" onClick="scoreQuestion(2,this.value)">Mulan<br>
<B>3.What is the name of 3?</B></p>
<input type=radio name=question3 value="a" onClick="scoreQuestion(3,this.value)">aaa<br>
<input type=radio name=question3 value="b" onClick="scoreQuestion(3,this.value)">bbb<br>
<input type=radio name=question3 value="c" onClick="scoreQuestion(3,this.value)">ccc<br>
<input type=radio name=question3 value="d" onClick="scoreQuestion(3,this.value)">ddd<br>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -