<form action="" METHOD=POST>
……
</form>

解决方案 »

  1.   

    老兄!你从哪里考来的代码?太不完整了吧!人家原来用的是checkbox,你改成了input,javascript当然也要改了。我帮你把检查答案的函数改了一下,答案应该是对的吧 :)
    function calculate(theForm){
    var storea=0;
    if(theForm.q1.value=="15"){storea+=13;}
    if(theForm.q2.value=="6"){storea+=13;}
    if(theForm.q3.value=="2C"||theForm.q3.value=="2c"){storea+=10;}
    if(theForm.q4.value=="+,+"){storea+=13;}
    if(theForm.q5.value=="E"||theForm.q5.value=="e"){storea+=13;}
    if(theForm.q6.value=="23"){storea+=13;}
    if(theForm.q7.value=="land"){storea+=13;}
    if(theForm.q8.value=="1"){storea+=13;}
    if(theForm.q9.value=="18"){storea+=13;}
    if(theForm.q10.value=="4"){storea+=13;}
    return confirm("谢谢你参加智商测试!\n\n"+
    "你的智商为:"+storea+"\n\n"+
    "您所用的时间:" +i+"\n"+
    "===================================\n70-    --弱智\n"+
    "70-89  --智力低下\n"+
    "90-99  --智力中等\n"+
    "100-109--智力中上\n"+
    "110-119--智力优秀\n"+
    "120-129--智力非常优秀\n"+
    "130-139--智力非常非常优秀\n"+
    "140+   --天才");}
    还有个显示时间的函数,你自己改改看吧