zoukankan      html  css  js  c++  java
  • 隐身按钮

    <html>

     <head>

     

    <script>

     functiondisableButton(){

      if(newDate().getHours() == 18){

       document.getElementById("button").setAttribute("disabled","disabled");

      }

     }

     window.onload=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>

  • 相关阅读:
    E
    C. Connect Three(构造)
    判断矩形相交的方法
    字典树&&01字典树专题&&对字典树的理解
    J
    kmp专题
    Python 字典 popitem() 方法
    Python 字典 pop() 方法
    Python 字典(Dictionary) values()方法
    Python 字典(Dictionary) update()方法
  • 原文地址:https://www.cnblogs.com/liaoshiyong/p/3150827.html
Copyright © 2011-2022 走看看