View Single Post
Old 06-02-2003, 05:06 PM  
candyflip
Carpe Visio
 
candyflip's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: New York
Posts: 43,068
<S.CRIPT language=hahahahahahahahahaha type=text/hahahahahahahahahaha>
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thu rsday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May"," June","July","August","September","October","Novem ber","December")
function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
{
d = new Date();
Time24H = new Date();
Time24H.setTime(d.getTime() + (d.getTimezoneOffset()*60000) + 3600000);
}
if (hourshahahaha0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//Simple fix to prevent errors in W3C HTML Validator by Carl A. Rhoades
//Keeps the validator from thinking the span tags are imporoperly nested inside the script tags
var lstn = "<";
var slsh = "/";var grtn = ">";
var lts = "</";
var spcs = "&nbsp;&nbsp;";
var cdate = lstn+"span class=date"+grtn+" "+dayarray[day]+", "+montharray[month]+" "+daym+" "+year+" "+lts+"span"+grtn+""+lstn+"span class=time"+grtn+" | "+hours+":"+minutes+":"+seconds+" "+dn+"&nbsp;&nbsp;"+lts+"span"+grtn;
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}
window.onload=goforit
// End --></S.CRIPT>
__________________

Spend you some brain.
Email Me
candyflip is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote