Im creating a website (not yet published) & I want to add today's date (automatically updating). How do I do this?
Main website is www.galwoliecottage.com but new one has no domain yet! Hope you can still help.
Denise
Im creating a website (not yet published) & I want to add today's date (automatically updating). How do I do this?
Main website is www.galwoliecottage.com but new one has no domain yet! Hope you can still help.
Denise
Try dynamicdrive.com for a date/time script
Karen
VodaHost
Your Website People!
1-302-283-3777 North America / International
07031847328 / United Kingdom
------------------------
Top 3 Best Sellers
Web Hosting - Unlimited disk space & bandwidth.
Reseller Hosting - Start your own web hosting business.
Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)
thanks Karen, but theres nothing on it just for date,as far as I can see.
Denise
Hi, you can paste this below into a html box.
<script language="JavaScript">
<!--
var now = new Date();
var days = new Array(
'Sun','Mon','Tues',
'Wednes','Thurs','Fri','Sat');
var months = new Array(
'Jan','Feb','Mar','Apr','May',
'June','July','Aug','Sept','Oct',
'Nov','Dec');
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
function fourdigits(number) {
return (number < 1000) ? number + 1900 : number;}
today = days[now.getDay()] + ", " +
months[now.getMonth()] + " " +
date + ", " +
(fourdigits(now.getYear()));
document.write(today);
//-->
</script>
CHris, when I paste that into my HTML box, and then go to preview it, the date box doesnt appear. Am I missing something?
Denise
Your computer is blocking it from being shown in preview. You're probably getting a notice on top of the screen that some content is blocked - click on that to allow that content and it will show. Or just publish :)
Bethers - THanks, thats great! Its my husbands site and hes working on domain name, etc at the moment so cant publish yet. He wants to know now, can the font be changed for that html code?
The way that code is written, it's using the default font chosen for your page. If you want a different font just for that code, yes it can be done, but you'll need to add it to the code using the following:
Before the code put:
<FONT style="FONT-SIZE:10pt" color="#FFFFFF" face="Georgia">
change the size and color and face to whatever you want.
After the code put:
</FONT>
Theres a ton of them on dynamic drive
http://dynamicdrive.com/dynamicindex6/index.html
Karen
VodaHost
Your Website People!
1-302-283-3777 North America / International
07031847328 / United Kingdom
------------------------
Top 3 Best Sellers
Web Hosting - Unlimited disk space & bandwidth.
Reseller Hosting - Start your own web hosting business.
Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)
Hi Beth,
that worked perfectly! Thanks for your help.
Denise
Yvw
There are currently 1 users browsing this thread. (0 members and 1 guests)