basic.html 1003 B

123456789101112131415161718192021222324252627282930
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Basic ProgressBar - jQuery EasyUI Demo</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="../demo.css">
  9. <script type="text/javascript" src="../../jquery.min.js"></script>
  10. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  11. </head>
  12. <body>
  13. <h2>Basic ProgressBar</h2>
  14. <p>Click the button below to show progress information.</p>
  15. <div style="margin:20px 0;">
  16. <a href="#" class="easyui-linkbutton" onclick="start()">Start</a>
  17. </div>
  18. <div id="p" class="easyui-progressbar" style="width:400px;"></div>
  19. <script>
  20. function start(){
  21. var value = $('#p').progressbar('getValue');
  22. if (value < 100){
  23. value += Math.floor(Math.random() * 10);
  24. $('#p').progressbar('setValue', value);
  25. setTimeout(arguments.callee, 200);
  26. }
  27. };
  28. </script>
  29. </body>
  30. </html>