ajax开发工具bindows使用指南:Splash Screen

从 Bindows 0.96 版开始,你便可以修改应用程序载入时的 Splash Screen 了。 
Splash Screen 包含了三个不同的部分:Html,StatusText 和 ProgressBar 。  <SplashScreen>
  <Html>Well formed XHTML</Html>
  <StatusText/>
  <ProgressBar/>
</SplashScreen>
这些元素中的每一个都可以包含一个 style 属性以包含用于各个元素呈现其所在部分的 CSS 属性。那,例如想要隐藏 Splash Screen,你可以设置 display 为 none。  <SplashScreen style="display: none"/>
一个更加复杂的 Splash Screen 可以通过使用边框、颜色以及一些 HTML 来实现,例如下面的这个 ADF:  <application>

  <window caption="Splash Screen Test" width="600"
height="480"/>

  <SplashScreen style="height: 110px; width: 200px;
border: 10px solid navy; color: navy; background: white;">
      <Html style="width: 160px; left: 10px; top: 10px; ">
<h1 style="margin: 0; font-size: 25px;">Hello World</h1></Html>
      <StatusText style="width: 160px; color: navy;
left: 10px; top: 45px;"/>
      <ProgressBar style="width: 160px; border: 1px solid navy;
left: 10px; top: 60px; "/>
  </SplashScreen>

  <Resources>
      <Script><![CDATA[

function SplashScreen() {}
SplashScreen.main = function () { new SplashScreen; };

// we want to raise an error here to keep the splash visible
throw "Intentional error";

      ]]></Script>
  </Resources>
</application>
 
通过这个思想,你可以很容易的添加一幅图像或者任何可以在浏览器中显示的其他东西作为 Splash Screen。

 感谢原创者的辛勤劳动,希望对您有所帮助,转载请注明原出处。
 您可能对 [Ajax] 的这些文章也感兴趣:

怎样使用AJAX进行WEB应用程序开发
自定义ASP.NET Ajax Extender控件
AJAX验证框架集合
Ajax教程:注册应用
Zoho用Google Gears为Ajax应用提供离线支持
AJAX使用技巧:如何处理书签和翻页按扭
AJAX开发工具Atlas:实现机制浅析(二)
ASP.NET的AJAX控件工具包已经更新
Ajax实现多任务指示器(附源码)
AJAX开发工具对比(仅限.net环境)