Copy Code code as follows:
<p class= "Time" > Current system times: <script type= "Text/javascript" >
Today = new Date ();
function Initarray () {
This.length = InitArray.arguments.length
for (var i = 0; i < this.length; i++)
This[i + 1] = Initarray.arguments[i]
}
var d = new Initarray (
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday");
document.write (
"<font color=# #000000 style= ' font-size:9pt;font-family: Song body ' > ',
(Today.getyear ()), "year",
Today.getmonth () + 1, "month",
Today.getdate (), "Day",
D[today.getday () + 1],
"</font>");
</script> <span id= "Liveclock" ></span> <script type= "Text/javascript" >
function Www_helpor_net () {
var Digital = new Date ()
var hours = digital.gethours ()
var minutes = Digital.getminutes ()
var seconds = digital.getseconds ()
if (minutes <= 9)
minutes = "0" + minutes
if (seconds <= 9)
seconds = "0" + seconds
Myclock = hours + ":" + minutes + ":" + seconds
if (document.layers) {
Document.layers.liveclock.document.write (Myclock)
Document.layers.liveclock.document.close ()
else if (document.all)
liveclock.innerhtml = Myclock
SetTimeout ("Www_helpor_net ()", 1000)
}
Www_helpor_net ();
</script> </p>
The effect chart is as follows: