日期:2014-05-18  浏览次数:20772 次

浏览器老是报错:缺少对像.
<%@ page language="java" contentType="text/html; charset=gb2312"
  pageEncoding="gb2312"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>一个很准的性格测试</title>
</APPLET>
</head>
<body>
<script language=javascript>
<!--
function CheckData()
{
String sname=null;
for(int i=0;i<8;++i)
{
sname="rdoQ"+(i+1);
if(form1.sname.value==null)
{
window.alert("请将您的表格填完整!");
break;
}
else
form1.submit();
}
}
-->
</script>
<form action="characterResult.jsp" method=post name=form1>
<div align="center">性格测试</div>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="blue">
<tr bgcolor="green">
<td width="629" style="padding-left:24px;"><strong>1.若有块地是养老用的房子,你会盖在哪?</strong></td> 
  </tr>
<tr bgcolor="white">
<td colspan="2" style="padding-left:24px;"><p>
<input type="radio" value="8" name=rdoQ1>
<span title="">靠近湖边</span><br>
<input type="radio" value="15" name=rdoQ1>
<span title="">靠近河边</span><br>
<input type="radio" value="6" name=rdoQ1>
<span title="">深山内</span><br>
<input type="radio" value="10" name=rdoq1>
<span title="">森林</span>
</tr>
<tr bgcolor="green">
<td width="629" style="padding-left:24px;"><strong>2.吃西餐最先动那一道?</strong></td> 
  </tr>
<tr bgcolor="white">
<td colspan="2" style="padding-left:24px;"><p>
<input type="radio" value="6" name=rdoQ2>
<span title="">面包</span><br>
<input type="radio" value="15" name=rdoQ2>
<span title="">肉类</span><br>
<input type="radio" value="6" name=rdoQ2>
<span title="">沙拉</span><br>
<input type="radio" value="6" name=rdoQ2>
饮料
</tr>
<tr bgcolor="green">
<td width="629" style="padding-left:24px;"><strong>3.如果节庆要喝点饮料,你认为如何搭配最适当呢? </strong></td> 
  </tr>
<tr bgcolor="white">
<td colspan="2" style="padding-left:24px;"><p>
<input type="radio" value="15" name=rdoQ3>
<span title="">耶诞节/香槟</span><br>
<input type="radio" value="6" name=rdoQ3>
<span title="">新年/牛奶</span><br>
<input type="radio" value="1" name=rdoQ3>
<span title="">情人节/葡萄酒</span><br>
<input type="radio" value="6" name=rdoQ3>
<span title="">国庆日/威士忌</span>
</tr>
<tr bgcolor="green">
<td width="629" style