PDA

View Full Version : i want to put a date on my page that updates itself daily



timhayes
05-15-2009, 04:18 AM
anyone know how to do this i have seen it on a few peoples pages

davidundalicia
05-15-2009, 04:51 AM
you can find one in the tips and tricks forum...................

timhayes
05-15-2009, 05:27 AM
i just want it to be plain and simple in arial size 10 font without the time or a border or a recangle or anything anyone know how i can do this?

Karen Mac
05-15-2009, 05:48 AM
Please dont duplicate posts. Did you LOOK for this script? do a search.. or even look on google. Im sure you will find a java script that does this.

Karen

navaldesign
05-15-2009, 12:24 PM
Drag a HTML box in your page. Make it small, just the space that will display the date.

Paste this code in:

<font style="font-size:10px;font-family:Arial;" color=#000000>
<div id="basicdate">
</div>
</font>
<script language="JavaScript" type="text/javascript">
var now = new Date();
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thu rsday','Friday','Saturday');
var months = new Array('January','February','March','April','May',' June','July','August','September','October','Novem ber','December');
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
var year = (now.getYear() < 1000) ? now.getYear() + 1900 : now.getYear();
today = days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + ", " + year;
basicdate.innerHTML = today;
</script>

motoxxx
10-07-2009, 08:58 AM
Thanks Naval!