<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
测试
<br> function show() {<br> var str = "";<br> str = str + panduan("score", 0, "第一题回答");<br> str = str + panduan("score2", 2, "第二题回答");<br> str = str + panduan("score3", 2, "第三题回答");<br> str = str + panduan("score4", 0, "第四题回答");<br> str = str + panduan("score5", 0, "第五题回答");<br> str = str + panduan("score6", 2, "第六题回答");<br> str = str + panduan("score7", 3, "第七题回答");<br> str = str + panduan("score8", 2, "第八题回答");<br> str = str + panduan("score9", 2, "第九题回答");<br> str = str + panduan("score10", 1, "第十题回答");<br> alert(str);<br> }</p> <pre><code> function panduan(name, daan, xinxi) { var jieguo = ""; var jieguo1 = document.getElementsByName(name); if (jieguo1[daan].checked == true) { jieguo = jieguo + xinxi + "正确。\n"; } else { jieguo = jieguo + xinxi + "错误。\n"; } return jieguo; } </code></pre> <p>
1.写“Hello World”的正确javascript语法是?().
document.write("Hello World") B. "Hello World" C. response.write("Hello World") D. ("Hello World")2.产生当前日期的方法是
A.Now(); B.Date() C.new Date() D.new Now()3.在HTML文档对象模型中,history对象的()用于加载历史列表中的下一个URL页面。
A.next() B.back() C.forward() D.go(-1)4、在Javascript浏览器对象模型中,window对象的()属性用来指定浏览器状态栏中显示的临时消息。
A.status B.screen C.history D.document5、在Javascript中,可以使用Date对象的()方法返回一个月中的每一天。
A.getDate B.getYear C.getMonth D.getTime6、在Javascript中要改变页面文档的背景色,需要修改document对象的()属性。
A.BackColor B.BackgroundColor C.BgColor D.Background7、在HTML页面中,不能与onChange事件处理程序相关联的表单元素有
A.文本框 B.复选框 C.列表框 D.按钮8、下列选项中关于浏览器对象的说法错误的是
A.history对象记录了用户在一个浏览器中已经访问过的URLs B.location对象相当于IE浏览器中的地址栏,包含关于当前URL地址的信息 C.location对象是history对象的父对象 D.location对象是window对象的子对象9、Javascript中制作图片代替按钮的提交效果需要手动提交方法submit(),以下调用正确的是
A.submit(); B.myform.submit() C.document.myform.submit() D.window.myform.submit();10、某网页中有一个窗体对象,其名称是mainForm,该窗体对象的第一个元素是按钮,其名称是myButton,表述该按钮对象的方法是
A.document.forms.myButton B.document.mainForm.myButton C.document.forms[0].element[0] D.以上都可以
得分是
如果按一题10分计算 这个计算代码该如何写