以下摘自无忧!作者:ivvnXP<form name=feng><input type=text style="border:none;width:50;height:50;background:ffffff;color:red;font:50" name=yun><br>
<input type=text style="background:ffffff;color:blue;border-bottom:blue 1px solid;border-left: blue 1px solid;border-right:blue 1px solid;border-top:blue 1px solid;font:10pt/13pt" name=ge size=40>
</form>
<script>a=5;b=0;
function zfy(){
if(a<0){a=0;
b=b+1;
if(b==30){alert("呵呵,这网速还真慢……");}
if(b==35){alert("倒,怎么还没进……");}
if(b==40){alert("啊!!!!我不玩啦!!!!!!!");
self.location.href="index.php";}}
document.feng.yun.value=a;
a=a-1;
setTimeout("zfy();",1000)}
zfy();</script>
<script>
function hehe(){document.feng.ge.value+="■";
setTimeout("hehe()",200);}
hehe();</script>
<input type=text style="background:ffffff;color:blue;border-bottom:blue 1px solid;border-left: blue 1px solid;border-right:blue 1px solid;border-top:blue 1px solid;font:10pt/13pt" name=ge size=40>
</form>
<script>a=5;b=0;
function zfy(){
if(a<0){a=0;
b=b+1;
if(b==30){alert("呵呵,这网速还真慢……");}
if(b==35){alert("倒,怎么还没进……");}
if(b==40){alert("啊!!!!我不玩啦!!!!!!!");
self.location.href="index.php";}}
document.feng.yun.value=a;
a=a-1;
setTimeout("zfy();",1000)}
zfy();</script>
<script>
function hehe(){document.feng.ge.value+="■";
setTimeout("hehe()",200);}
hehe();</script>
里实现的非常好,大家去看看,高手指点一下,实现者在给300分
实现真正的控制,不过分还是要给的!!
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
function getFile()
{
xmlhttp.open("GET","http://msdn.microsoft.com",true);
xmlhttp.onreadystatechange=displayStatus;
xmlhttp.send();
displayStatus();
}function displayStatus()
{
document.body.style.cursor = "wait";
//var s = new Array("uninitialized","loading","loaded","interactive","completed");
setProgressBar(xmlhttp.readyState);
if (xmlhttp.readyState ==4)
{
document.body.style.cursor = "arrow";
}
}function setProgressBar(n)
{
var cells = document.all("progress").rows[0].cells;
for (var i=0; i < n; i++)
cells[i].style.backgroundColor = "red";
for (i=n; i < cells.length; i++)
cells[i].style.backgroundColor = "";
}
</script>
<input type="button" value="start" onclick="getFile()">
<table border="0" cellspacing="0" cellpadding="0" id="progress">
<tr><td width="100"> </td><td width="100"></td><td width="100"></td><td width="100"></td><td width="100"></td></tr>
</table></body>