This article describes the JS imitation Windows boot start loading progress bar method. Share to everyone for your reference. The implementation methods are as follows:
Copy Code code as follows:
<title>js Imitation Windows boot-initiated loading progress bar </title>
<body style= "Margin:0;background-color: #5279CE;" scroll=no>
<table id=lw style= "display:block;position:absolute;top:0;left:0;z-index:1;height:;width:" border= "0" width= " 100% "cellspacing=" 0 "cellpadding=" 0 "height=" 100% ">
<tr>
<TD width= "100%" bgcolor= "#5279CE" align= "center" ><font face= "Wingdings" style= "font-size:240px;color=#" 000000 ">Y</td>
</tr>
<tr>
<TD height= "Ten" bgcolor= "#3F5FB2" >
<script language=jscript>
elt= "0123456789ABCDEF";
var stbhtmls= "";
var stbhtmle= "";
for (Var i=0;i<0xff-0x99;i+=1)
{
var cr= "";
var L;
var stbhtml= "";
l=i+0x99;
for (Var j=0;j<2;j++)
{
var n=l% 16;
L=l >> 4;
Cr=elt.charat (n) +cr;
}
l=i+0x33;
for (Var j=0;j<2;j++)
{
var n=l% 16;
L=l >> 4;
Cr=elt.charat (n) +cr;
}
L=i;
for (Var j=0;j<2;j++)
{
var n=l% 16;
L=l >> 4;
Cr=elt.charat (n) +cr;
}
var w=i> (0xff-0xa0)? 8:4
Stbhtml= "<span style= ' height:10;width: +w+" background-color:# "+cr+"; margin:0;padding:0 ' ></span> '
stbhtmls+=stbhtml;
Stbhtmle=stbhtml+stbhtmle;
}
var Stbhtml=stbhtmls+stbhtmle;
document.write ("<marquee id= ' loading ' scrollamount= ' direction= ' right ' scrolldelay= ' 1 ' height= ' 4 ' style= ' width") : 100%;height:10; Font-size:6px;background-color: #003399 ' > ')
document.write (stbhtml)
document.write ("</marquee>")
</SCRIPT></td>
</tr>
<tr>
<TD width= "100%" height= "20%" bgcolor= "#ECF0FF" ><center><span id=load_txt "style=;" ><b id=showtxt style= "color:red;font-size:12px;line-height:138%;" > load, please wait ......</b></span></center>
<p align= "center" style= "FONT-SIZE:9PT;" >CopyRight@</p></td>
</tr>
</table>
<script language= "JavaScript" >
<!--
var finderror = false;
function Gopage ()
{
if (document.readystate== "complete")
{
Showtxt.innerhtml= "Load in, please wait ..."
Loading.style.display= "None";
}
}
-->
</SCRIPT>
</body>
I hope this article will help you with your JavaScript programming.