Server time script(A very easy java script)

12/21/2008 21:30 simeman#1
Put this in ur body tag
<table>
<td>
<span id="liveclock" style="position:absolute;Change this to left or right:1;change this to bottom or top:1;"></span>

<script language="JavaScript">
<!--



function show5(){
if (!document.layers&&!document.all&&!document.getEle mentById)
return

var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()

var dn="PM"
if (hours<12)
dn="AM"
if (hours>12)
hours=hours-12
if (hours==0)
hours=12

if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here to your desire
myclock="<b>Current Server Time:</br>"+hours+":"+minutes+":"
+seconds+" "+dn+"</b>"
if (document.layers){
document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}
else if (document.all)
liveclock.innerHTML=myclock
else if (document.getElementById)
document.getElementById("liveclock").innerHTML=myc lock
setTimeout("show5()",1000)
}


window.onload=show5
//-->
</script>
</td>
</table>

A thx would be appriciated
12/22/2008 14:11 YukiXian#2
Lol, looks really nice,
I'f found this :
Code:
<div id="time">
<span>Server Time (GMT+1)</span><script language="javascript"><!--
new LiveClock('Verdana','2','white','images/time_bg.gif',' ','','110','0','1','0','0','1');
//--></script>
</div>
12/22/2008 15:00 Beta Limit#3
Quote:
Originally Posted by YukiXian View Post
Lol, looks really nice,
I'f found this :
Code:
<div id="time">
<span>Server Time (GMT+1)</span><script language="javascript"><!--
new LiveClock('Verdana','2','white','images/time_bg.gif',' ','','110','0','1','0','0','1');
//--></script>
</div>

"Stolen" from the CO website :)
12/22/2008 16:53 -Reflexis-#4
wow thanks guys, it is perfect for putting on a event page or something for when and how late there are server events
12/22/2008 18:07 YukiXian#5
Quote:
Originally Posted by Beta Limit View Post
"Stolen" from the CO website :)
Lol, I'm just saying I found it that way,,, :p