日期:2014-05-17 浏览次数:21367 次
/// <summary>
/// 页面加载中效果!
/// </summary>
public static void initJavascript(System.Web.UI.Page page)
{
StringBuilder Builder = new StringBuilder();
Builder.Append("<style>");
Builder.Append("#loader_container {text-align:center; position:absolute; top:40%; width:100%; left: 0;}");
Builder.Append("#progress {height:5px; font-size:1px; width:1px; position:relative; top:1px; left:0px; background-color:#8894a8;}");
Builder.Append("#loader_bg {background-color:#e4e7eb; position:relative; top:8px; left:8px; height:7px; width:260px; font-size:1px;}");
Builder.Append("</style>");
Builder.Append("<div id=loader_container>");
Builder.Append("<div id=loader style='left: 300px; top: 150px;border-width: 3px; border-color: #B3D9D9; border-style:solid; position: absolute;z-index: 20000; background-color: #D1E9E9; cursor: wait; width: 300px; height: 75px;vertical-align: middle; padding: 10px 10px 10px 10px;'>");
Builder.Append("<div id=loader_bg><div id=progress> </div></div>");
Builder.Append("<div align='center' style='text-align:center;width:100%'> <br/>页面加载中,请稍等...</div>");
Builder.Append("</div></div>");
Builder.Append(" <script language=JavaScript type=text/javascript>");
Builder.Append("var t_id = setInterval(animate,10);");