Hey guys,
Does anyone know of a tutorial with a date block or even just a string that will update itself? Im designing a site for a publishing company and I obviously wont be here to change the date daily. Ive found some cool ones but nothing that will update itself. No big deal but I thought Id ask
Thanks
Marc
Date block or string that updates itselfUae a script to call a date function that will update automatically.?There are plenty of small scripts on the Web that you can cut and paste to do this for you.?The automatic bit is simply calling the script to run on page load, which is simple.
Date block or string that updates itselfIf you're running on a Linux server, you could use this server-side include that will pull the server's current time and date stamp into the content of your .shtm or .shtml pages.
%26lt;!--#config timefmt=''%A %B %d, %Y'' --%26gt;
%26lt;!--#echo var=''DATE_LOCAL'' --%26gt;
Nancy O.
Alt-Web Design %26amp; Publishing
Web | Graphics | Print | Media?Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com
Thanks for both of your responses but I found a way with some easy css and javascript.
%26lt;style type=''text/css'' rel=''stylesheet''%26gt;
.outerbox { border:#00aaaa 1px solid;padding:0px;
?width:110px;
?overflow:hidden;margin:4px; font-weight: 900;
?font-family: Arial, Helvetica, sans-serif; }
.datebox?{ font-size:82pt;color:#00aaaa;text-align:center;
?border-bottom:#00aaaa 1px solid; height:121px; }
.monthbox { font-size:20pt;color:#fff;
?background-color:#00aaaa;text-align:center; height:52px;}
%26lt;/style%26gt;
%26lt;script language=''Javascript'' type=''text/javascript''%26gt;
document.write(day)
%26lt;/script%26gt;
%26lt;script language=''Javascript'' type=''text/javascript''%26gt;
document.write(monthname[monthnum])
%26lt;/script%26gt;
No comments:
Post a Comment