1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <HTML xmlns:v>
- <%@ page contentType="text/html;charset=gb2312"%>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <HEAD>
- <STYLE>
- v\:*{behavior:url(#default#VML);}
- *{font-size:12px;color:;}
- </STYLE>
- </HEAD>
- <BODY topmargin='2' leftmargin='2'>
- <div id="bar" style='table-Layout:fixed;width:100%;height:100%;z-index:2;border:0 solid black'>
- <v:RoundRect id='a' style='position:absolute;left:300;top:250;height:24;'>
- <v:Textbox inset='5px,5px,5px'><b><font color='red' id='jindu'></font></b></v:textbox>
- <v:fill type='gradient' id='fill1' color='blue'/>
- </v:RoundRect>
- </div>
- <script>
- //原作:风云舞,载自:http://www.lshdic.com/bbs
- var pos1=1,posall=500 //定义全局变量,pos1为当前进度,posall为总进度
- var schedulefoot=30;
- var timerid;
- playerid1=0;
- var endtimeout;//计时
- function play1(){ //播放函数
- if(pos1<posall)
- {
- if (pos1<posall*0.99) {pos1+=1;}
- }
- else
- {
- replay1();
- /*pos1=1;fill1.color="rgb("+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+")";*/}
-
-
- a.style.width=Math.round(300/(posall/pos1));
-
- jindu.innerText="loading..."+Math.round(100/(posall/pos1))+"%"
-
- fill1.angle=Math.round(300/(posall/pos1))
- playreset();
- }
- timerid = setInterval("play1()",schedulefoot) //30毫秒播放一次,一般CPU保证能消化~~~
- colortimerid = setInterval("changecolor()",4000)
- function replay1(){
- if (playerid1==0)
- {
- clearInterval(timerid);
- //timerid=setInterval("play1()",4000);playerid1=1;
- }
- }
- var scheduletrue=true;
- function playreset()
- {
- scheduletrue=!scheduletrue;
- if (scheduletrue==true)
- {
- clearInterval(timerid);
- timerid=setInterval("play1()",pos1);
- }
- }
- function changecolor()
- {
- fill1.color="rgb("+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+")";
- }
- function scheduleend(){
- pos1=500;play1();
- endtimeout=setInterval("document.all.bar.style.display='none';document.all.bar.style.width=0.1;document.all.bar.style.height=0.1;document.all.windforce.style.display='block';",50);
- endtimeout=setInterval("clearInterval(endtimeout)",60);
- clearInterval(colortimerid);
- //clearTimeout(endtimeout);
- }
- </script>
- <div id="windforce" style='table-Layout:fixed;width:100%;height:100%;z-index:1;border:0 solid black;display:none'>
|