![]() |
I need a Java Script
Just a basic script that I can post to a page that show the current EST to anybody who views the page.
Any suggestions? |
hitme up on icq...i'll have it done for you in 5 minutes 179419520
not sure why I'm feeling so nice. |
Aaron the simplest way to include the date time on a webpage is with SSI, simple little code u add where u want the date displayed, then rename the page .shtml instead of .html.
http://www.htmlgoodies.com/beyond/ss...sandtimes.html |
worldtimeserver.com
|
Here you go Aaron.
There are many to choose from. http://webdeveloper.earthweb.com/webjs/jstimedate Oz |
<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 = " "; 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+" "+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> |
Dont forget your s.c.r.i.p.t. tags
|
Quote:
|
All times are GMT -7. The time now is 01:33 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123