■ ステータスバーに点滅文字・年月日時計付き ■
↓のタグソースを
(1) <head>〜</head> 間に書き込んでください。
<script language="JavaScript"> <!-- msg = "文字点滅年月日時計付きヽ(^。^)ノ" timeID = 10; function Flash() { ct = new Date(); year = "0"+ct.getYear(); month = "0"+(1+ct.getMonth()); date = "0"+ct.getDate(); days = ct.getDay(); h = "0"+ct.getHours(); m = "0"+ct.getMinutes(); s = "0"+ct.getSeconds(); h = h.substring(h.length-2,h.length+1); m = m.substring(m.length-2,m.length+1); s = s.substring(s.length-2,s.length+1); year = year.substring(year.length-2,year.length+1); month = month.substring(month.length-2,month.length+1); date = date.substring(date.length-2,date.length+1); youbi = "日月火水木金土".substring(days*2,days*2+2)+"曜日】"; cl = year+"年"+month+"月"+date+"日【"+youbi+":現在時刻 [ "+h+":"+m+":"+s+" ] "; f = ct.getSeconds() & 1; f == 0 ? str = " " : str = msg; status = cl+str; clearTimeout(timeID); timeID = setTimeout("Flash()",100); } // --> </script>
(2) <body>に、↓の赤表示のタグソースを書き加えてください。 <body
onload="Flash()"
>
SEO
掲示板
[PR]
爆速!無料ブログ
無料ホームページ開設
無料ライブ放送