js 複製程式碼 程式碼如下: <BR><BR><BR><script language="java">> <!-- <BR>var wait_time = 8; //設定秒數(單位秒) <BR>var secs_time = 0; <BR>for(var i=1;i<=wait_time; <BR> window.setTimeout("sTimer(" i ")",i*1000); <BR>} <BR>function sTimer(num) <BR>{ <BR> if(num==wait_time) <BR> { <BR> document.getElementById("reg_btn").value=" 同意註冊"; <BR> document.getElementById("reg_btn").disabled=false; <BR> } <BR> > secs_time=wait_time-num; <BR> document.getElementById("reg_btn").value="請先閱讀服務條款(" secs_time ")"; <BR> } <BR>} <BR>//--> <BR> html 複製程式碼複製程式碼 程式碼: