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)
-   -   java date script needed (https://gfy.com/showthread.php?t=85226)

newbie 10-28-2002 11:40 PM

java date script needed
 
i have a page that has 156 dates on it

i need a java script that lets' me put a simple line in each date spot so that it displays the current date/month in every spot

pimplink 10-28-2002 11:42 PM

Here's a link that spells it out: http://www.computerhope.com/j2.htm

newbie 10-28-2002 11:45 PM

Quote:

Originally posted by pimplink
Here's a link that spells it out: http://www.computerhope.com/j2.htm
thanks but that's way way way too big to put in 156 times

Libertine 10-29-2002 03:29 AM

Between your head tags:
PHP Code:

<script language="JavaScript">
<!--
day = new Date();
strday = (day.getMonth() + 1) + '/' day.getDate();
function 
sd(){ document.write(strday); }
//-->
</script> 

Where you want the date to appear:
PHP Code:

<script language="JavaScript">
<!--
sd();
//-->
</script> 


.:Frog:. 10-29-2002 04:34 AM

script language="javascript">
var monthNames = new Array("January","February","March","April","May"," June","July","August","September","October","Novem ber","December");
tday = new Date();
theDay = [tday.getDay()];
theMonth = monthNames[tday.getMonth()];
out = theMonth + ' ' + tday.getDate() + ''
document.write(out);
</script


All times are GMT -7. The time now is 05:27 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123