zoukankan      html  css  js  c++  java
  • 虚拟格式化硬盘

    <html>
    <head>
    <title>格式化硬盘</title>
    </head>
    <script LANGUAGE="JAVASCRIPT">
    var timerID=null;
    var count=0;
    var running=false;
    function RandomNumber(max)
    {var today = new Date();
      var num= Math.round((Math.abs(Math.sin(today.getTime()))*1000))%max+1;
      return num;
    }
    function stopaction()
    {if (running)
       clearTimeout(timerID);
    running=false;
    }
    function startaction()
    { stopaction();
      action();
    }
    function action()
    {if (count!=100)
      { document.outputform.output.value="正在格式化硬盘,目前进度:"+count+"%";
         count++;
         timerID=setTimeout("action()",200+RandomNumber(500));
         running=true;
      }
      else
       { document.outputform.output.value="格式化完毕 ... ...";
          stopaction();
       }
    }
    </script>
    <body onload="startaction()">
    <div align="center">
    <p style="color:#F00">正在格式化D盘</p>
    <form name="outputform">
      <p><input TYPE="TEXT" NAME="output" size="50"></p>
    </form>
    </div>
    </body>
    </html>
  • 相关阅读:
    POJ 1753(1)
    2015.12 杭电校赛 Bitwise Equations
    codeforces B
    POJ2387 水水最短路
    CodeForces 337C SDUT秋季训练--周赛(10.31)
    HDU 1241
    POJ 3126 Prime Path
    HDU 2612
    POJ 1426 Find The Multiple
    day94 flask-session 表单验证 信号 SQLALchemy
  • 原文地址:https://www.cnblogs.com/linmilove/p/1500932.html
Copyright © 2011-2022 走看看