<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>
<div id="rrr"></div>
<script language="javascript">
var i=0;
for(i=0;i<10000;i++)
document.getElementById("rrr").innerHTML=i;
</script>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>
<div id="rrr"></div>
<script language="javascript">
var i=0;
for(i=0;i<10000;i++)
document.getElementById("rrr").innerHTML=i;
</script>
</body>
</html>
解决方案 »
- PHP中select下拉框的问题
- 【LAMP】哪里有合适的网站空间?
- 大学生反CNN网站被黑 创始人呼吁提供技术支援(PHP社群的兄弟们。这次轮到你们上了)
- 相信这里有高手,crontab的备份问题
- 关于验证码的问题,请各位高手帮忙!
- 高手帮忙,形如select '' as field1 ....union select field11 as field1中 ''产生的问题
- 200 萋洗 妪槟php实现虚拟呲
- PHP的语音聊天系统
- 网页中链接可执行文件,不想显示文件下载对话框,想直接在当前位置运行该程序,怎么办?
- 谁可以帮我做一个记录总访问量的程序
- 未来趋势来看,.NET和PHP哪个有前途?或者哪个流行
- 有一个字符串001 怎么把前面的两个零过滤掉 得到1?
rrr.innerHTML=i;就可以了吧
你加个alert在里面应该就能看出变化了
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head><body>
<div id="rrr"></div>
<script language="javascript">
var i=0;
function t(){
if(i!=10000){
i++;
document.getElementById("rrr").innerHTML=i;
}
setTimeout("t()",100);
}
t();
</script>
</body>
</html>