開關(guān)時鐘
來源:易賢網(wǎng) 閱讀:1110 次 日期:2016-06-15 09:29:19
溫馨提示:易賢網(wǎng)小編為您整理了“開關(guān)時鐘”,方便廣大網(wǎng)友查閱!

代碼如下:

<script language=javascript>

var enabled=0;

function tofunc() {

to = window.settimeout( tofunc(), 1000);

var today = new date();

document.clock.disp.value = today.tolocalestring();

}

</script>

<form name=clock>

<input type=text name=disp value= size=20

onfocus=this.blur() ><br>

<input type=radio name=rad value=off onclick=if( enabled==1 )

{

document.clock.disp.value='';

cleartimeout( to );

enabled = 0;

}

checked>關(guān)<font color=#ffff99> </font>

<input type=radio name=rad value=on onclick=if( enabled == 0 )

{

var to = settimeout( 'tofunc()', 1000 );

enabled = 1; } >開<font color=#ffff99> </font>

</form>

插入到網(wǎng)頁中看看

更多信息請查看腳本欄目
下一篇:升降文字特效
易賢網(wǎng)手機網(wǎng)站地址:開關(guān)時鐘
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權(quán)所有:易賢網(wǎng)