日期:2014-05-16 浏览次数:20751 次
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="../../../ext-3.3.0/resources/css/ext-all.css"/>
<script type="text/javascript" src="../../../ext-3.3.0/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../../ext-3.3.0/ext-all.js"></script>
<script type="text/javascript">
Ext.get("btn").dom.on(
"click",
function(){
Ext.MessageBox.show({
title:"时间进度条",
msg:"5s后关闭进度框",
process:true,
width:300,
height:400,
wait:true,
waitConfig:{
interval:600,
duration:5000,
fn:function(){
Ext.MessageBox.hide();
}
},
closable:true
});
}
);
</script>
</head>
<body>
<input type="button" id="btn" value="test" />
</body>
</html>
Ext.onReady(function(){//////////
Ext.get("btn").on(///////////
"click",
function(){
Ext.MessageBox.show({
title:"时间进度条",
msg:"5s后关闭进度框",
process:true,
width:300,
height:400,
wait:true,
waitConfig:{
interval:600,
duration:5000,
fn:function(){
Ext.MessageBox.hide();