日期:2014-05-16  浏览次数:20353 次

.“Extjs之进度条的控制”
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Ext4.aspx.cs" Inherits="EXT1.Ext4" %>
  2
  3  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4
  5  <html xmlns="http://www.w3.org/1999/xhtml" >
  6  <head runat="server">
  7     <title>第四课,进度条的应用</title>
  8     <link href="ext-3.2.0/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
  9     <script src="ext-3.2.0/adapter/ext/ext-base.js" type="text/javascript"></script>
10     <script src="ext-3.2.0/ext-all.js" type="text/javascript"></script>
11 </head>
12 <body>
13     <form id="form1" runat="server">
14     <div id="id1">
15     <script type="text/javascript">
16     Ext.BLANK_IMAGE_URL="MyImage/dlg-bg.gif";
17     function Read1() {
18         Ext.Msg.wait("内容","Extjs进度条应用",{text:"正在加载。。。"});
19     }
20     function Read2() {
21         Ext.Msg.show({
22         modal:false,
23         title:"标题",
24         msg:"内容",
25         closable:true,
26         width:300,
27         wait:true
28         })
29     }
30     function Read3() {
31         Ext.Msg.show({
32         title:"标题",
33         msg:"内容",
34         modal:true,
35         closable:true,
36         width:300,
37         progress:true,
38         progressText:"保存进度"
39         })
40     }
41     function Read4() {
42         var progressBar=Ext.Msg.show({
43         title:"标题",
44         msg:"通过进度的大小来控制进度",
45         progress:true,
46         width:300
47         });
48         var count=0;
49         var bartext="";
50         var curnum=0;
51         Ext.TaskMgr.start({
52             run:function () {
53                 count++;
54                 if (count>=10) {
55                     progressBar.hide();
56       &nbs