zoukankan      html  css  js  c++  java
  • jsp 进度条

    <html> 
    <head> 
    <title>进度条</title> 
    <style type="text/css"
    .processcontainer{ 
       450px; 
       border:1px solid #6C9C2C; 
       height:25px; 
     } 
    #processbar{ 
       background:#95CA0D; 
       float:left;
       height:100%; 
       text-align:center; 
       line-height:150%;
     
    </style> 
    <script type="text/javascript"
     function setProcess(){ 
      var processbar = document.getElementById("processbar"); 
      processbar.style.width = parseInt(processbar.style.width) + 1 + "%";
      processbar.innerHTML = processbar.style.width; 
      if(processbar.style.width == "100%"){ 
         window.clearInterval(bartimer); 
      
     
    var bartimer = window.setInterval(function(){setProcess();},100); 
    window.onload = function(){ 
       bartimer; 
    </script> 
    </head> 
    <body> 
      <div class="processcontainer"
       <div id="processbar" style="0%;"></div> 
      </div> 
    </body> 
    </html>
  • 相关阅读:
    其他
    Win10
    Win10
    面向对象与设计模式
    Git
    Java
    Git
    Git
    Git
    一、I/O操作(File文件对象)
  • 原文地址:https://www.cnblogs.com/dingjiuping/p/7510150.html
Copyright © 2011-2022 走看看