簡易時鐘clock
檔案下載 : 1
將下列程式碼複製至<head>程式碼</head>區內。
<!--clock begin--> <center> <form name="t"> <table border="0" width="70%" bgcolor="#6492FD"> <tr> <td width="100%"> <p align="center" style="border-style: outset; border-color: #FFFFFF"><font size="2" color="#FFFFFF">現在是</font> <input type="text" name="time1" size="7" style="font-family: Arial; align: center; background-color: #000000; color: #FFFFFF"> <input type="text" name="time2" size="1" style="font-family: Arial; align: center; color: #FFFFFF; background-color: #000000"> <input type="text" name="time3" size="1" style="font-family: Arial; align: center; background-color: #000000; color: #FFFFFF"> <input type="text" name="time4" size="1" style="font-family: Arial; align: center; background-color: #000000; color: #FFFFFF"> <input type="text" name="time5" size="1" style="font-family: Arial; align: center; background-color: #000000; color: #FFFFFF"> <input type="text" name="time6" size="1" style="font-family: Arial; align: center; background-color: #000000; color: #FFFFFF"> <input type="text" name="time7" size="1" style="font-family: Arial; align: center; background-color: #000000; color: #FFFFFF"> </table> </form> <script src="clock.js"> //clock by Tommy Wu 2003/10/24 </script> <!--clock end--> |
將下列程式碼複製至<body 程式碼>的標籤之中。
onload="clock()" |