GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   I need a Java Script (https://gfy.com/showthread.php?t=139330)

AaronM 06-02-2003 04:27 PM

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?

nobull 06-02-2003 04:33 PM

hitme up on icq...i'll have it done for you in 5 minutes 179419520

not sure why I'm feeling so nice.

Mutt 06-02-2003 04:59 PM

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

loverboy 06-02-2003 05:02 PM

worldtimeserver.com

OzKaNoz 06-02-2003 05:06 PM

Here you go Aaron.
There are many to choose from.
http://webdeveloper.earthweb.com/webjs/jstimedate

Oz

candyflip 06-02-2003 05:06 PM

<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>

candyflip 06-02-2003 05:07 PM

Dont forget your s.c.r.i.p.t. tags

RedShoe 06-02-2003 07:17 PM

Quote:

Originally posted by candyflip
Dont forget your s.c.r.i.p.t. tags
JA<b></b>VAS<b></b>CRI<b></b>PT


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