<Html>
<Head>
<Title>康董的状态提示条</Title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
body{
font-size:12px;
text-align:center;
}
#a{
position:absolute;
top:250px;
left:250px;
width:500px;
height:30px;
border:1px solid lightblue;
}
#b{
position:absolute;
left:0px;
margin-top:1px;
width:100px;
height:26px;
border:1px solid black;
background-color:#999900;
}
#text{
position:absolute;
width:500px;
left:0px;
margin-top:10px;
}
</style>
</Head>
<body>
<div>作者:康董|Csdn会员名:TaoTaoYou|QQ:30458885
</div>
<div id="a">
<div id="b"></div>
<div id="text">系统正在处理您的请求,请稍候......</div>
</div>
<script language="javascript">
//滚到终点以后不会滚回来,一直没有完善,完善的朋友请QQ发给我一份,谢谢!
var b = document.getElementById("b");
var a = document.getElementById("a");
var b_Left = parseInt(b.currentStyle.left);
var setTimeMove;
function MoveDiv(){
if(b_Left!=396){
b_Left=b_Left+1;
b.style.left = b_Left;
}
}
function setTime(){
setTimeMove=setInterval("MoveDiv()","50")
}
setTime();
</script>
</body>
</html>
出自:Web圈