哪位给我看看,submit提交后什么反应也没有javascript的. <form action="" METHOD=POST>……</form> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 老兄!你从哪里考来的代码?太不完整了吧!人家原来用的是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+ --天才");}还有个显示时间的函数,你自己改改看吧 如何点击一个按钮,将表单的内容同时提交给两个页面进行处理 如何做两个下拉框想关联? checkbox隐藏和显示 问一个正则的问题 弱弱 的问个php+mysql的问题 又一个小偷呼救 页面执行时间太长,请各位大大帮忙看看 请PHP大侠推荐一本好的PHP教程书籍 请问哪里有大量的php原码下载? php正则表达式替换<>内容 请问是不是有个redfox可以帮助使用mysql?我找不到,哪有?谢谢,马上结帖 怎么用 php读 access.log
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+ --天才");}
还有个显示时间的函数,你自己改改看吧