我想在一个论坛中绕过倒计时,防洪功能,但我不知道该怎么做.. 这是我在源中找到的。
`<br /><br />
<span class='postcolor' style='padding:10px'>Flood control is enabled on this board, please wait 106 seconds before replying or posting a new topic, <script type='text/javascript'><!--
var countDownInterval=106;
//-->
</script>
<script language='JavaScript' type='text/javascript' src='wait_flood.js'></script></span>
<br /><br /> `
当我打开时 的 wait_flood.js 还有另一个代码
//Refresh page script- By Brett Taylor (glutnix@yahoo.com.au)
//Modified by Dynamic Drive for NS4, NS6+
//Visit http://www.dynamicdrive.com for this script
//configure refresh interval (in seconds)
//var countDownInterval=180;
//configure width of displayed text, in px (applicable only in NS4)
var c_reloadwidth=200
var countDownTime=countDownInterval+1;
function countDown(){
countDownTime--;
if (countDownTime <=0){
countDownTime=countDownInterval;
clearTimeout(counter)
//window.location.reload()
return
}
if (document.all) //if IE 4+
document.all.countDownText.innerText = countDownTime+" ";
else if (document.getElementById) //else if NS6+
document.getElementById("countDownText").innerHTML=countDownTime+" "
else if (document.layers){ //CHANGE TEXT BELOW TO YOUR OWN
document.c_reload.document.c_reload2.document.write('<a href="javascript:window.location.reload()">refresh</a> in <font size="+3"><b id="countDownText">'+countDownTime+'</b></font>seconds')
document.c_reload.document.c_reload2.document.close()
}
counter=setTimeout("countDown()", 1000);
}
function startit(){
if (document.all||document.getElementById) //CHANGE TEXT BELOW TO YOUR OWN
document.write('<a href="javascript:window.location.reload()">refresh</a> in <font size="+3"><b id="countDownText">'+countDownTime+'</b></font>seconds')
countDown()
}
if (document.all||document.getElementById)
startit()
else
window.onload=startit
抱歉英语不好,希望你能理解..