複製程式碼程式碼如下: =3.0)<BR>dl_ok=true; <BR>回傳true;<BR>}<BR>function get_time_spent ()<BR>{ <BR>var time_now = new Date();< turn Date(); ((time_now.getTime() - Clock_start)/1000); <BR>}<BR>function show_secs () // 顯示使用者在一邊花費的時間<BR>{ <BR>var i_total_secs = Math. round(get_time_spent(get_time_spent( )); <BR>var i_secs_spent = i_total_secs % 60;<BR>var i_mins_spent = Math.round((i_total_secs-30)/60); <BR>var s_secs_spent = "spenti_secs. " i_secs_spent);<BR>var s_mins_spent ="" ((i_mins_spent>9) ? i_mins_spent : "0" i_mins_spent);<BR>document.fm0.time_spent.value = s_mins_3; ('show_secs()',1000); <BR>}<BR>// --><BR>