久久国产成人av_抖音国产毛片_a片网站免费观看_A片无码播放手机在线观看,色五月在线观看,亚洲精品m在线观看,女人自慰的免费网址,悠悠在线观看精品视频,一级日本片免费的,亚洲精品久,国产精品成人久久久久久久

分享

Asp.net"頁(yè)面加載中"效果實(shí)現(xiàn)

 mybook564 2014-09-13
#region "頁(yè)面加載中效果"

/// <summary>

/// 頁(yè)面加載中效果

/// </summary>

public static void initJavascript()

{

HttpContext.Current.Response.Write(" <script language=JavaScript type=text/javascript>");

HttpContext.Current.Response.Write("var t_id = setInterval(animate,20);");

HttpContext.Current.Response.Write("var pos=0;var dir=2;var len=0;");

HttpContext.Current.Response.Write("function animate(){");

HttpContext.Current.Response.Write("var elem = document.getElementById('progress');");

HttpContext.Current.Response.Write("if(elem != null) {");

HttpContext.Current.Response.Write("if (pos==0) len += dir;");

HttpContext.Current.Response.Write("if (len>32 || pos>79) pos += dir;");

HttpContext.Current.Response.Write("if (pos>79) len -= dir;");

HttpContext.Current.Response.Write(" if (pos>79 && len==0) pos=0;");

HttpContext.Current.Response.Write("elem.style.left = pos;");

HttpContext.Current.Response.Write("elem.style.width = len;");

HttpContext.Current.Response.Write("}}");

HttpContext.Current.Response.Write("function remove_loading() {");

HttpContext.Current.Response.Write(" this.clearInterval(t_id);");

HttpContext.Current.Response.Write("var targelem = document.getElementById('loader_container');");

HttpContext.Current.Response.Write("targelem.style.display='none';");

HttpContext.Current.Response.Write("targelem.style.visibility='hidden';");

HttpContext.Current.Response.Write("}");

HttpContext.Current.Response.Write("</script>");

HttpContext.Current.Response.Write("<style>");

HttpContext.Current.Response.Write("#loader_container {text-align:center; position:absolute; top:40%; width:100%; left: 0;}");

HttpContext.Current.Response.Write("#loader {font-family:Tahoma, Helvetica, sans; font-size:11.5px; color:#000000; background-color:#FFFFFF; padding:10px 0 16px 0; margin:0 auto; display:block; width:130px; border:1px solid #5a667b; text-align:left; z-index:2;}");

HttpContext.Current.Response.Write("#progress {height:5px; font-size:1px; width:1px; position:relative; top:1px; left:0px; background-color:#8894a8;}");

HttpContext.Current.Response.Write("#loader_bg {background-color:#e4e7eb; position:relative; top:8px; left:8px; height:7px; width:113px; font-size:1px;}");

HttpContext.Current.Response.Write("</style>");

HttpContext.Current.Response.Write("<div id=loader_container>");

HttpContext.Current.Response.Write("<div id=loader>");

HttpContext.Current.Response.Write("<div align=center>頁(yè)面正在加載中 ...</div>");

HttpContext.Current.Response.Write("<div id=loader_bg><div id=progress> </div></div>");

HttpContext.Current.Response.Write("</div></div>");

HttpContext.Current.Response.Flush();

}

#endregion

}

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式,、誘導(dǎo)購(gòu)買等信息,,謹(jǐn)防詐騙,。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約