English
<!-- http://js.downcodes.com/ --> <!-- http://bbs.downcodes.com/--> <script> <!-- //According to "minutes:seconds" Format setting limit time. var limit="0:30" if (document.images){ var parselimit=limit.split(":") parselimit=parselimit[0]*60+parselimit[1]*1 } function begintimer(){ if (! document.images) return if (parselimit==1) //The following is the connection page after the limit time is up, modify it yourself. window.location="yours.htm" else{ parselimit-=1 curmin=Math.floor(parselimit/60) cursec=parselimit if (curmin!=0) curtime="You only have "+curmin+"minutes"+cursec+" seconds " else curtime="You only have "+cursec+" seconds to save this page. " setTimeout("begintimer()",1000) //The next sentence tells the visitor the remaining time in the text box. Display it, just remove it if you don’t want to. document.lefttime.left.value=curtime //The next sentence tells the visitor the remaining time and displays it in the status bar. window.status=curtime } } //--> </script> <!--//-------- Text box display area, if you don't want to display it in the text box, just remove it. --> <form name="lefttime"> <p><input type="text" name="left" size="25"> </p> </form> <!--//---- ----End of text box-------------> Finally, don’t forget: <BODY onload="begintimer()">