大家看看吧,
在A页面中
<form action="randomuserresult.asp" method="POST" name="form" target="_top">
<input type="submit" value="交卷" name="bt" onclick="javascript:return button()" onmouseover="this.className='style2'" onmouseout="this.className='style1'" class="style1" style="HEIGHT: 25px; WIDTH: 65px" ;"VBScript:form.submit()">
<input type="submit" value="保存" name="bt" onclick="VBScript:form.submit()" onmouseover="this.className='style2'" onmouseout="this.className='style1'" class="style1" style="HEIGHT: 25px; WIDTH: 65px">
</form>
function show5()'定时器
{
if (outtime<=0)
document.form.submit()
outtime--;
setTimeout("show5()",60000)
}
A页面中有三个功能,一就是单击保存当前的试题情况,保存后又返回A页面,二就是交卷,三就是当outime的值小于0时,就自动提交表单(交卷)。
---------------------------------------------------------
randomuserresult.asp中
<%@ Language=VBScript %>
<%
actionType=request("bt")'这里就是得到上个页面的值,如果是单击交卷或保存的话就有值,如果是自动提交的话,就为空,所有我这样做。
if actionType="保存" then
myaction="save"
else
myaction="taotao"
end if
select case myaction
case "taotao" '交卷的处理
.....
case "save" '保存的处理
.....
end select
为什么在我本机上运行时,没有任何错误,而在其他机器登录上来之后,就有问题了,如,我在A面中单击保存,就执行了case "taotao"里面的语句这是为什么呢?好奇怪呀,这个问题我整了两天了,头都晕了,不知怎么会这样,求大侠们救命呀,
怪就怪在,为什么在本机的浏览器中运行没有错误,而在其他客户机的浏览器中就有问题了,面代码又是一样的。