治疗粉刺的中药:如何制作网页中时间的自动刷新?

来源:百度文库 编辑:高校问答 时间:2024/04/30 00:13:53
如何制作网页中时间的自动刷新?
如果是代码的话更好
制作软件是Dreamweaver

第一种方法:<body onload='setTimeout("location.reload()",1000)'>

1000是一秒,你可以自己设定.
第二种方法:在 <body> 与 </body> 之间加入:
<META http-equiv=refresh content="10;url=../index.htm">

第三种方法:<script>
function rl(){
document.location.reload()
}
setTimeout(rl,2000)
</script>
第四种方法:<meta http-equiv="refresh" content="200">