惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
Cisco Talos Blog
Cisco Talos Blog
AI
AI
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
S
Securelist
博客园_首页
IT之家
IT之家
Schneier on Security
Schneier on Security
博客园 - 叶小钗
罗磊的独立博客
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
W
WeLiveSecurity
The Register - Security
The Register - Security
D
DataBreaches.Net
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tailwind CSS Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
T
Tor Project blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com

博客园 - 优雅旋律

四角号码 对照表 ScriptManager Bug Application_Start 不执行 ZT Asp.net 2.0 自定义控件开发专题[详细探讨页面状态(视图状态和控件状态)机制及其使用场景] ZT 数据库范式浅解 ZT 数据库设计系列:数据库设计5步骤 ZT Web Control 开发系列(一) 页面的生命周期 MarcHandler (Marc ISO2709) Resharper 4.0 终于RC了... GridView、DetailsView、FormView 、Repeater、DataList的区别 (ZT) 常用正则表达式 ZT linq(update) 更新用 自动赋值方法 利用对象序列化将购物车保存在Cookie中 (ZT) ajax tab 动态设置主题(Theme) 一些注意 持久化数据 关于vs2008的Eval方法 重大失误 datapager分页问题 (点击两次)
loading 关机效果
优雅旋律 · 2008-07-24 · via 博客园 - 优雅旋律

 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    
<title>Untitled Page</title>
    
<style type="text/css">
        #modalBackground
        {
            background
-color: gray;
            filter: alpha(opacity
=70);
            opacity: 
0.7;
            position: absolute;
            top: 0px;
            left: 0px;
        }
        #animationDialog
        {
            position: absolute;
            border: solid 1px black;
            color: Black;
            background
-color: #0099cc;
            font
-family: Arial;
            font
-size: 8pt;
            font
-weight: bold;
            line
-height: 30px;
            height: 30px;
            padding: 10px;
            text
-align: center;
        }
    
</style><script type="text/C#" runat="server">
        
protected void Button1_Click(object sender, EventArgs e)
        {
            Thread.Sleep(
5000);
        }
    
</script></head>
<body>
    
<form id="form1" runat="server">
    
<asp:ScriptManager ID="ScriptManager1" runat="server" />
    
<div style="height: 2000px;">
    
</div>
    
<div style="height: 2000px;">
        
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
            
<ContentTemplate>
                
<%= DateTime.Now %>
                
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
            
</ContentTemplate>
        
</asp:UpdatePanel>
    
</div>
    
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
        
<ProgressTemplate>
            
<div id="modalBackground">
            
</div>
            
<div id="animationDialog">
                
<img src="loading.gif" alt="Loading" /><br />
                加载中
            
</div>
        
</ProgressTemplate>
    
</asp:UpdateProgress><script type="text/javascript" language="javascript">
            function getClientBounds()
            {
                var clientWidth;
                var clientHeight;
                
switch(Sys.Browser.agent) {
                    
case Sys.Browser.InternetExplorer:
                        clientWidth 
= document.documentElement.clientWidth;
                        clientHeight 
= document.documentElement.clientHeight;
                        
break;
                    
case Sys.Browser.Safari:
                        clientWidth 
= window.innerWidth;
                        clientHeight 
= window.innerHeight;
                        
break;
                    
case Sys.Browser.Opera:
                        clientWidth 
= Math.min(window.innerWidth, document.body.clientWidth);
                        clientHeight 
= Math.min(window.innerHeight, document.body.clientHeight);
                        
break;
                    
default:  // Sys.Browser.Firefox, etc.
                        clientWidth = Math.min(window.innerWidth, document.documentElement.clientWidth);
                        clientHeight 
= Math.min(window.innerHeight, document.documentElement.clientHeight);
                        
break;
                }
 
                
return new Sys.UI.Bounds(00, clientWidth, clientHeight);
            }
        
            function resizeElements()
            {
                var clientBounds 
= getClientBounds();
                var clientWidth 
= clientBounds.width;
                var clientHeight 
= clientBounds.height;
            
                var bg 
= $get("modalBackground");    
                bg.style.width 
= Math.max(Math.max(document.documentElement.scrollWidth, document.body.scrollWidth), clientWidth) + 'px';
                bg.style.height 
= Math.max(Math.max(document.documentElement.scrollHeight, document.body.scrollHeight), clientHeight) + 'px';
            
                var st
=0;
                
if (document.body && document.body.scrollTop)
                {
                    st
=document.body.scrollTop;   
                }
                
if (document.documentElement && document.documentElement.scrollTop)
                {
                    st
=document.documentElement.scrollTop; 
                }
                var scrollLeft 
= (clientWidth/2);
                var scrollTop 
= (clientHeight/2+st);    
                var dialog 
= $get("animationDialog");
                dialog.style.left 
= scrollLeft + "px";
                dialog.style.top 
= scrollTop + "px";
            }
            
            $addHandler(window, 
"scroll", resizeElements);
            $addHandler(window, 
"resize", resizeElements);
            resizeElements();
    
</script></form>
</body>
</html>