<BODY onload="TOfunc()"> <SCRIPT LANGUAGE="JavaScript"> var enabled = 0; function TOfunc() { TO = window.setTimeout( "TOfunc()", 1000 ); var today = new Date(); document.forms[0].elements[0].value = today.toString(); } </SCRIPT> <CENTER> <FORM> <CENTER> <input type="text" name="disp" value="" size=25 onFocus="this.blur()"><br> <input type="radio" name="rad" value="ВЫКЛ." onClick="if( enabled ) { clearTimeout( TO ); enabled = 0; }"> ВЫКЛ. <input type="radio" name="rad" value="ВКЛ." checked onClick=" if( !enabled ) { TO = setTimeout( 'TOfunc()', 1000 ); enabled = 1; }" > ВКЛ.<br> </CENTER> </FORM> <br><br> </center></BODY>
|