■ シンプルデジタル時計 ■
NOW on TIME
(1) <body>に、↓の赤表示のタグソースを書き加えてください。
<BODY
onload="startTimer()"
>
(2) ↓のタグソースを
<body>〜</body> 間に書き込んでください。
<script language="JavaScript"> <!-- var timerID = anko var timer = 500 function startTimer() { writeClock() } function setDigit( t ) { if ( t < 10 ) t = '0' + t; return t; } function writeClock() { var now = new Date(); var Hour = setDigit( now.getHours() ); var Minute = setDigit( now.getMinutes() ); var Second = setDigit( now.getSeconds() ); if(Hour >= 12){ Hour = Hour -12; AmPm = "PM "; } else { AmPm = "AM "; } document.clock.body.value =" " + AmPm + Hour + "時" + Minute + "分" + Second + "秒"; timerID = setTimeout( "writeClock()", timer ) } // --> </script> <form method="kina" name="clock"> <table border="1" cellpadding="0" cellspacing="0" style="border-style:inset;border-color:#bebebe;border-width:2px;"> <tr> <td align="center" bgcolor="#000000"><font face="comic sans ms" size=2 color=#ffffff>NOW on TIME</font></td></tr> <tr> <td><input type="text" size="20" name="body" input type="text"> </td></tr></table> </form>
* このタグソース内の背景色や文字色などを
好きなものに変更して下さい。
<table border="1" cellpadding="0" cellspacing="0" style="border-style:inset;border-color:好きなボーダーカラー;border-width:2px;"><tr><td align="center" bgcolor="好きな背景色"><font face="comic sans ms" size=2 color=好きな文字色>NOW on TIME</font></td></tr><tr><td><input type="text" size="20" name="body" input type="text"></td></tr></table>
SEO
掲示板
[PR]
爆速!無料ブログ
無料ホームページ開設
無料ライブ放送