http://www.delphifaq.com/faq/javascript/f606.shtml

<script language="JavaScript">
<!--
var iTime=5;
function update() {
var txt = 'Will update progress ';
if (iTime>1) { txt = txt + 'in ' + iTime + ' seconds.'; }
else {
  if (iTime==1) { txt = txt + 'in one second.'; }
  else { txt = txt + 'now.'; }
}
document.getElementById("cnt").innerHTML = txt;
iTime=iTime-1;
if(iTime>=0) { ID=window.setTimeout("update();",1000); }
else { document.location.href="http://www.w3schools.com"; }
}
// -->

 

</script>
</head>
<body onload="update()">

<div name=cnt id=cnt>Will update progress in 5 seconds.</div>

相关文章:

  • 2021-11-10
  • 2022-12-23
  • 2021-12-05
  • 2021-11-15
  • 2021-10-31
  • 2022-12-23
  • 2021-11-04
  • 2021-06-16
猜你喜欢
  • 2022-02-14
  • 2021-09-10
  • 2022-12-23
  • 2021-12-25
  • 2022-01-10
  • 2021-12-08
  • 2021-10-10
相关资源
相似解决方案