隐身按钮
<html>
?<head>
?
<script>
?functiondisableButton(){
? if(newDate().getHours() == 18){
???document.getElementById("button").setAttribute("disabled","disabled");
? }
?}
?window.οnlοad=function(){setInterval(disableButton,1000);}
?</script>
</head>
<body>
?<inputtype="button" id="button" value="18點失效"/>
</body>
</html>
?
?
?
===========================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>表單提交后按鈕變灰代碼</title>
<metahttp-equiv="content-type"content="text/html;charset=gb2312">
</head>
<body>
<scriptlanguage="javascript">
function my_submit(){
???????? document.form1.submit();
???????? document.form1.submit1.disabled=true;
}
</script>
<form action="/"method="post" name="form1">
<input type="text"name="name">
<input type="button"name="submit1" value="提交" onClick="javascript:my_submit();">
</form>
</body>
</html>
總結
- 上一篇: 计算机中隐身功能,隐形电脑
- 下一篇: 连接被远程计算机终结,远程桌面问题终极解