单击按钮显示正确的答案数 [英] Show how many answers are correct on clicking a button

查看:55
本文介绍了单击按钮显示正确的答案数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个像这个博客的帖子:
http://onlinetoefltest.blogspot.com/...-lesson-1.html


当您选择所有答案并单击显示答案将出现一个msg框并告诉我有多少答案是正确的


我查看博客来源并将所有代码复制到我的帖子但是当我点击它时它不起作用在我的帖子中显示答案按钮。


任何人都可以帮我提供代码吗?

提前致谢


[html] 1。孵化后,________。 < input id =" text1" style =" visibility:hidden;宽度:1px; value =" A">< br />< input id =" choice1A"值= QUOT; A"名称= QUOT;选择1" type =" radio">< label id =" C1A">(A)幼鸭知道如何游泳< / label>< br />< input id =" choice1B"值= QUOT; B"名称= QUOT;选择1" type =" radio">< label id =" C1B">(B)游泳由幼鸭知道< / label>< br />< input id =" choice1C"值= QUOT; C"名称= QUOT;选择1" type =" radio">< label id =" C1C">(C)游泳的知识是在幼鸭中< / label>< br />< input id =" choice1D"值= QUOT; d"名称= QUOT;选择1" type =" radio">< label id =" C1D">(D)如何游泳在幼鸭中是已知的< / label>< br /> 2。一些来自云层的雨水在________之前蒸发。 < input id =" text2" style =" visibility:hidden;宽度:1px; value =" A">< br />< input id =" choice2A"值= QUOT; A"名称= QUOT;选择2" type =" radio">< label id =" C2A">(A)到达地面< / label>< br />< input id =" choice2B"值= QUOT; B"名称= QUOT;选择2" type =" radio">< label id =" C2B">(B)到达地面< / label>< br />< input id =" choice2C"值= QUOT; C"名称= QUOT;选择2" type =" radio">< label id =" C2C">(C)到达地面< / label>< br />< input id =" choice2D"值= QUOT; d"名称= QUOT;选择2" type =" radio">< label id =" C2D">(D)地面到达< / label>< br />< input language =" javascript" ID = QUOT; button1的"的onclick = QUOT; button1_onclick();" value ="显示答案名称= QUOT; button1的" type =" button">

[/ HTML]


I want to creat a post like this blog:
http://onlinetoefltest.blogspot.com/...-lesson-1.html

When you chose all the answers and click show answer a msg box will appear and tells how many answers are correct

I view the blog source and copied all the code to my post but it didn''t work when i click the show answer button in my post.

Can any one help me with the code?
Thanks in advance

[html]1. Upon hatching, ________. <input id="text1" style="visibility: hidden; width: 1px;" value="A"><br /><input id="choice1A" value="A" name="choice1" type="radio"><label id="C1A">(A) young ducks know how to swim</label><br /><input id="choice1B" value="B" name="choice1" type="radio"><label id="C1B">(B) swimming is known by young ducks</label><br /><input id="choice1C" value="C" name="choice1" type="radio"><label id="C1C">(C) the knowledge of swimming is in young ducks</label><br /><input id="choice1D" value="D" name="choice1" type="radio"><label id="C1D">(D) how to swim is known in young ducks</label><br />2. Some of the rainwater from clouds evaporates before ________. <input id="text2" style="visibility: hidden; width: 1px;" value="A"><br /><input id="choice2A" value="A" name="choice2" type="radio"><label id="C2A">(A) reaching the ground</label><br /><input id="choice2B" value="B" name="choice2" type="radio"><label id="C2B">(B) to reach the ground</label><br /><input id="choice2C" value="C" name="choice2" type="radio"><label id="C2C">(C) reach the ground</label><br /><input id="choice2D" value="D" name="choice2" type="radio"><label id="C2D">(D) the ground reaches</label><br /><input language="javascript" id="button1" onclick="button1_onclick();" value="Show answers" name="button1" type="button">
[/HTML]



展开 | 选择 | Wrap | 行号

推荐答案

请记住为任何已启动的线程提供有意义的标题(请参阅FAQ条目使用好主题标题


这有助于确保其他成员以及公众,将有更好的机会找到任何类似问题的答案。


MODERATOR
Please remember to provide a meaningful Title for any threads started (see the FAQ entry Use a Good Thread Title).

This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions.

MODERATOR



我想创建一个像这个博客的帖子:
http://onlinetoefltest.blogspot.com/...- lesson-1.html


当您选择所有答案并单击显示答案时,将出现一个msg框并告知有多少答案是正确的

我查看了博客来源并将所有代码复制到我的帖子中,但是当我点击帖子中的显示答案按钮时它无法正常工作。


任何人都可以帮我处理代码吗?
I want to creat a post like this blog:
http://onlinetoefltest.blogspot.com/...-lesson-1.html

When you chose all the answers and click show answer a msg box will appear and tells how many answers are correct

I view the blog source and copied all the code to my post but it didn''t work when i click the show answer button in my post.

Can any one help me with the code?



那你的版本会发生什么?你有任何错误吗?

So what happens in your version? Do you get any errors?



那你的版本会发生什么?你有任何错误吗?
So what happens in your version? Do you get any errors?



代码是正确的但是当我在博客中发布新博客时,它不起作用。

The code is all correct but when i post a new blog in blogger, it doesn''t work.


这篇关于单击按钮显示正确的答案数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆