Copy codeThe Code is as follows:
<Script>
Var l = 0;
Var imgs;
Var sum = 0;
Var imgs = new Array ();
Function chk (){
L --;
Document. getElementById ("aa"). innerText = "" + (sum-l) * 100/sum) + "%"
If (l = 0 ){
For (var I = 0; I <sum; I ++)
Document. body. innerHTML + = "}
}
If (document. images ){
Imgs [0] = new Image ()
Imgs [1] = new Image ()
Imgs [2] = new Image ()
Imgs [3] = new Image ()
Imgs [4] = new Image ()
Imgs [5] = new Image ()
Imgs [6] = new Image ()
Imgs [7] = new Image ()
Imgs [0]. src = "/articleimg/2006/08/3859/01 .jpg ";
Imgs [1]. src = "/articleimg/2006/08/3859/02 .jpg ";
Imgs [2]. src = "/articleimg/2006/08/3859/03 .jpg ";
Imgs [3]. src = "/articleimg/2006/08/3859/04 .jpg ";
Imgs [4]. src = "/articleimg/2006/08/3859/05 .jpg ";
Imgs [5]. src = "/articleimg/2006/08/3859/06 .jpg ";
Imgs [6]. src = "/articleimg/2006/08/3859/07 .jpg ";
Imgs [7]. src = "/articleimg/2006/08/3859/08 .jpg ";
}
</Script>
<Body>
<Div id = "aa" type = "option" text = "option"> 0% </div type = "option" text = "/option">
<Script>
Sum = l = imgs. length;
For (var I = 0; I <l; I ++ ){
Imgs [I]. onload = chk;
Imgs [I]. onerror = chk; // The specified method is executed no matter whether the image is loaded successfully or not.
}
</Script>
</Body>
<Base href = "http://www.blueidea.com/"> 0% <p>