code:1:41413e76b7]<body<br />
onLoad="goforit()"><br />
<script><br />
var dayarray=new<br />
Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")<br />
var montharray=new<br />
Array("January","February","March","April","May","June","July","August","September","October","November","December")<br />
function getthedate(){<br />
var mydate=new Date()<br />
var year=mydate.getYear()<br />
if (year < 1000)<br />
year+=1900<br />
var day=mydate.getDay()<br />
var month=mydate.getMonth()<br />
var daym=mydate.getDate()<br />
if (daym<10)<br />
daym="0"+daym<br />
var hours=mydate.getHours()<br />
var minutes=mydate.getMinutes()<br />
var seconds=mydate.getSeconds()<br />
var dn="AM"<br />
if (hours>=12)<br />
dn="PM"<br />
if (hours>12){<br />
hours=hours-12<br />
}<br />
if (hours==0)<br />
hours=12<br />
if (minutes<=9)<br />
minutes="0"+minutes<br />
if (seconds<=9)<br />
seconds="0"+seconds<br />
//change font size here<br />
var cdate="<small><font color='000000'<br />
face='Arial'><b>"+dayarray[day]+", "+montharray[month]+"<br />
"+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn<br />
+"</b></font></small>"<br />
if (document.all)<br />
document.all.clock.innerHTML=cdate<br />
else<br />
document.write(cdate)<br />
}<br />
if (!document.all)<br />
getthedate()<br />
function goforit(){<br />
if (document.all)<br />
setInterval("getthedate()",1000)<br />
}<br />
</script><br />
<span id="clock"></span>[/code:1:41413e76b7

دسته ها : سیستم عامل
شنبه بیست و سوم 9 1387
X