Cool javascript loading effect code

Source: Internet
Author: User

Copy codeThe Code is as follows:
<Font color = red> <script language = "JavaScript">
<! --
Var url = 'HTTP: // www.jb51.net'; // here is your url
// -->
</Script>
</Head>
<Body onLoad = "location. href = url">
<Div style = 'margin-top: 40; margin-left: 40; margin-right: 0'>
<P> </p>
<P align = "center"> </p>
<P align = "center"> </p>
<P align = "center">
<Style> <! --. Proccess {border: 0px solid; border-color: #009900; width: 2; height: 15; background: eeeeee; margin: 0} --> </style>
</P>
<Div style = 'margin-top:-20; margin-left: 0; margin-right: 0' align = "center">
<Form method = post name = proccess>
<Script language = javascript>
Document. write ("<br> <table border = 0 cellspacing = 1 cellpadding = 0 bgcolor = #000000> <tr bgcolor = # ffffff> <td style = 'font: 9pt Verdana; '> ")
For (I = 0; I <200; I ++) document. write ("<input class = proccess> ")
Document. write ("</td> </tr> </table> <br> ")
Document. write ("<div align = center style = 'font-size: 9pt; color: #660000; '> data loading ...... </div> ")
</Script>

<Div align = "center">
<Script language = JavaScript> <! --
Var p = 0, j = 0;
Var c = new Array ("# FF6600", "# ffffff ")
SetInterval ('proccess (); ', 100)
Function proccess (){
Document. forms. proccess. elements [p]. style. background = c [j];
P + = 1;
If (p = 200) {p = 0; j = 1-j ;}}
--> </Script>
</Div>
</Div>
<Div align = "center">
<Script>
<! --
If (document. layers)
Document. write ('<Layer src = "' + url + '" VISIBILITY = "hide"> </Layer> ');
Else if (document. all | document. getElementById)
Document. write ('<iframe src = "' + url + '" style = "visibility: hidden;"> </iframe> ');
Else location. href = url;
// -->
</Script>
</Div>
</Body> </font>

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.