Real loading with JS

Source: Internet
Author: User
Title Real loading with JSOicqkill (original)
Keywords Loading JS JavaScript frame control


This loading requires the support of two pages. You can also set this loading program for all the HTML of a site.
<! -- ======================================= -->
<! -- Index.htm --->
<! -- ======================================= -->
<HTML> <Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> you are visiting http://m9m.nease.net/'s website... </title>
</Head>
<Frameset rows = "0, *" name = FRM border = 0>
<Frame src = about: about name = T border = 0>
<Frame src#loading.htm name = d Border = 0>
</Frameset>
<Noframes> <body>
Your browser does not support frames ......
</Body> </noframes>

<! -- ======================================= -->
<! -- Loading.htm --->
<! -- ======================================= -->
<HTML>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<SCRIPT src = to. js>
</SCRIPT>
<Body>
<SCRIPT>
Showdiv ();
Wturl ("I .html"); // The Real index.htm of your website
</SCRIPT> </body>

<! -- ======================================= -->
<! -- To. JS -->
<! -- ======================================= -->
Document. write ('<style type = "text/CSS">. BTN {border-Right: # c0c0c0 1px solid; padding-Right: 3px; border-top: # c0c0c0 1px solid; padding-left: 1px; padding-bottom: 1px; border-left: # c0c0c0 1px solid; cursor: default; color: #000000; padding-top: 1px; border-bottom: # c0c0c0 1px solid; Background-color: # c0c0c0 }/
. Btu {border-Right: #999999 1px solid; padding-Right: 3px; border-top: # ffffff 1px solid; padding-left: 1px; float: none; padding-bottom: 1px; border-left: # ffffff 1px solid; cursor: default; color: #000000; padding-top: 1px; border-bottom: #999999 1px solid; Background-color: # c0c0c0} </style> ');

Function writebutton (fnfunctionname, buttonvalue, buttonurl, WD)
{
VaR strtmp = "", n = 0;
If (fnfunctionname = "")
Strtmp = "self. Location = '" + buttonurl + "';";
Else
Strtmp = fnfunctionname + '();';
For (VAR I = 0; I <buttonvalue. length; I ++)
{
VaR c = buttonvalue. substr (I, 1 );
If (C> "Z" | C <"")
N + = 2;
Else
N + = 1;
}
If (WD = "") WD = (N * 8 );

Document. write ("<Table title =" + buttonurl + "width =" + WD + "> <tr> <TD align = center class = BTN onmouseup =/" javascript: This. classname = 'btu'/"onmousedown =/" javascript: This. classname = 'btd '/"onmouseover =/" javascript: This. classname = 'btu'/"style =/" font-size: 12px; text-Decoration: NONE/"onclick =/" javascript: This. classname = 'btd '; "+ strtmp +"/"onmouseout =/" javascript: This. classname = 'btn '/">" + buttonvalue + "</TD> </tr> </table> ");
}

Function wtdiv ()
{
Document. write ("<Div id = stdiv style = 'position: absolute; width: 350px; Height: 115px; Z-index: 1; left: 30%; top: 35%; visibility: hidden; '> <Table width = 100% Height = 100% border = 1 bordercolor = #000000 bordercolordark = # ffffff cellspacing = 0 cellpadding = 0> <tr> <TD Height = 22 bgcolor = # bbbbbbbb> <SCRIPT> writebutton (/"/", /"Welcome <span id = IPN> </span> to access my computer .... /",/" http://m9m.nease.net/",/" 100% /"); </SCRIPT> </TD> </tr> <TD align = center bgcolor = # cccccc> <br> the system is running. Please wait. <br> Waiting Time: <font color = Red> <span id = wtime> </span> </font> seconds </TD> </tr> </table> </div> ");
}
Wtdiv ();

Function openwin ()
{
If (Self = Window. Parent. Frames ['T'] & top. Parent. FRM)
Top. Parent. frm. rows = '*, 0 ';
Else if (top. Parent. FRM) top. Parent. frm. rows = '0 ,*';
}

VaR Wt = 0, n = 0;
Function countwt ()
{
If (wt)
Cleartimeout (wt );
Wtime. innerhtml = "" + N ++;
Wt = setTimeout ("countwt ();", 1000 );
}

Function showdiv ()
{
Openwin ();
Document. getelementbyid ("stdiv"). style. Visibility = "visible ";
Countwt ();
}
Openwin ();

<! -- ======================================= -->
<! -- H. JS -->
<! -- ======================================= -->
If (self! = Window. Parent. Frames ['T'] & window. Parent. Frames ['T'])
Window. Parent. Frames ['T']. showdiv ();
Else if (Self = Window. Parent. Frames ['D'] & window. Parent. Frames ['D'])
Window. Parent. Frames ['D']. showdiv ();

Last description
Add the following code to your I .htmand your real index.htm homepage:
<Body> Add after
<SCRIPT src = H. js> </SCRIPT>
</Body> Add
<SCRIPT src = to. js> </SCRIPT>
You can.

Don't understand can access my website http://m9m.nease.net/or communicate with me
QQ: 11602011

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.