Loading progress bar Effect

Source: Internet
Author: User

<Html>
<Head>
<Title> test forwarding </title>
</Head>
<Body leftmargin = "0" topmargin = "0" marginwidth = "0" marginheight = "0" style = "overflow-x: hidden; overflow-y: hidden">
<Div id = "adslxp" style = "display: none "width =" 100% "height =" 100% "> <iframe src =" http://www.baidu.com "width =" 100% "height =" 100% "frameborder =" 0 "marginwidth =" 0" marginheight = "0" scrolling = "auto"> </iframe> </div>
<! ====================================== Loading progress bar ================== ==========>
<Div id = ld>
<Table width = 100% height = 90%> <tr> <td align = center>
<Center>
<H1> loading <font color = red> test forwarding </font> Please wait... <Table width = 40%> <tr> <td align = left>
<Table id = lpc bgcolor = blue> <tr> <td> </tr> </table>
</Td> </tr> </table>
<Br>
<Center> This site only provides domain name forwarding and has nothing to do with the websites that are switched to. </center>
</Center>
</Td> </tr> </table>
</Div>
<Script language = JavaScript> <! --
Ini = new Date (). getTime ();
Var pc = 0;
Load ();

Function load (){
Pc + = 2;
Lpc. style. width = pc + "% ";
Time = setTimeout ("load ()", 25 );
If (pc> 100) {clearTimeout (time); loaded ()}
}
Function loaded (){
Fim = new Date (). getTime ();
Dif = fim-ini;
Ld. style. display = 'none ';
Adslxp. style. display = '';
}
Function Show (){
If (txt. style. display = "none") {txt. style. display = ""}
Else {txt. style. display = "none "}
}
// --> </Script>
<! ====================================== Loading progress bar ================== ==========>
</Body>
</Html>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.