提交后如何让页面失效30秒?? function show(){ document.body.disabled=false}document.body.disabled=truesetTimeout("show()",30000) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <SCRIPT>function show(disabled){ document.body.disabled=disabled; if(disabled) setTimeout("show(false);",30000);}setTimeout("show(true);",30000);</SCRIPT><INPUT type="button" value="OK"> 用了这个之后对象的onclick事件依然能响应比如<INPUT TYPE="text" NAME=""><INPUT TYPE="button" onclick="alert();document.body.disabled=true;"><TABLE><TR> <TD style="border:red solid 10px; color:blue" onclick="alert('dsadsa')">dsfdsfds</TD></TR></TABLE> 那你可以把页面上所有的对象都disabled一遍,按钮disabled后,事件不再响应了 提交后记录cookies<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title> New Document </title><meta name="Generator" content="EditPlus"><meta name="Author" content=""><meta name="Keywords" content=""><meta name="Description" content=""></head><body><form name="demo"><textarea cols="10" rows="10">rrrr</textarea><input type="button" value="?"></form><script>if (GetCookie("yourcookiename")!=null){ var eles= document.forms[0].elements; for (var i=0;i<eles.length;i++){ eles[i].disabled = true; }}function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; }</script></body></html> 有个办法。用个层罩住,提交好,30秒内层的display = 'block';30 秒后为none; 反正弦 精度 关于Ext comboBox的传值问题 prototype定义的对象中的函数用this访问不了类的属性,该怎么做办 文本框的空格哪来的 提供一个论坛,希望大家到这里来瞄瞄,顺散分。 追踪路径行为。。??模糊。。。。????着急。。着急??? 关于attachEvent方法的问题 window.print("./anotherpage.jsp");打印问题? 为什么老说我缺少';'号 如何在网页中实现HTML编辑(类似FP2000的编辑方式) HTML 如何接受参数 如何判断一个输入框只能输入60个汉字
function show(disabled)
{
document.body.disabled=disabled;
if(disabled) setTimeout("show(false);",30000);
}
setTimeout("show(true);",30000);
</SCRIPT><INPUT type="button" value="OK">
比如
<INPUT TYPE="text" NAME="">
<INPUT TYPE="button" onclick="alert();document.body.disabled=true;">
<TABLE>
<TR>
<TD style="border:red solid 10px; color:blue" onclick="alert('dsadsa')">dsfdsfds</TD>
</TR>
</TABLE>
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<form name="demo">
<textarea cols="10" rows="10">
rrrr
</textarea>
<input type="button" value="?">
</form>
<script>
if (GetCookie("yourcookiename")!=null){
var eles= document.forms[0].elements;
for (var i=0;i<eles.length;i++){
eles[i].disabled = true;
}
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
</script>
</body>
</html>
用个层罩住,提交好,30秒内层的display = 'block';
30 秒后为none;