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。
| 感谢原创者的辛勤劳动,希望对您有所帮助,转载请注明原出处。 |