![]() |
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 |
Here's a link that spells it out: http://www.computerhope.com/j2.htm
|
Quote:
|
Between your head tags:
PHP Code:
PHP Code:
|
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