Search results for 'today'. 1 post(s) found.
- 2007/08/31 Basic Date Display
Use this code snippet to display today's Date on your Web page
<!-- ONE STEP TO INSTALL BASIC Date DISPLAY:
1. Copy the coding into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the BODY of your HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Author: www.cgiscript.net -->
<!-- Begin
// Get today's current Date.
var now = new Date();
// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
// Calculate the number of the current day in the week.
var Date = ((now.getDate()<10) ? "0" : "") now.getDate();
// Calculate four digit year.
function fourdigits(number) {
return (number < 1000) ? number 1900 : number;
}
// Join it all together
today = days[now.getDay()] ","
months[now.getMonth()] " "
Date ","
(fourdigits(now.getYear())) ;
// Print out the data.
document.write(today);
// End -->
</script>
<p><center>
<font face="arial,helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.30 KB -->
1. Copy the coding into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the BODY of your HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Author: www.cgiscript.net -->
<!-- Begin
// Get today's current Date.
var now = new Date();
// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
// Calculate the number of the current day in the week.
var Date = ((now.getDate()<10) ? "0" : "") now.getDate();
// Calculate four digit year.
function fourdigits(number) {
return (number < 1000) ? number 1900 : number;
}
// Join it all together
today = days[now.getDay()] ","
months[now.getMonth()] " "
Date ","
(fourdigits(now.getYear())) ;
// Print out the data.
document.write(today);
// End -->
</script>
<p><center>
<font face="arial,helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.30 KB -->
Another posts included in "HTML, Javascript"
| Javascript implemented Calendar (0) | 2007/08/31 |
| Javascript based Alarm Clock (0) | 2007/08/31 |
| How to get date time in Javascript ? (0) | 2007/08/31 |
| Address Book (0) | 2007/08/30 |
| Displays the number of pages that the users browser has displayed in it... (0) | 2007/08/30 |
| Greeting For The Time Of Day (0) | 2007/08/30 |
| Access Granted (0) | 2007/08/30 |
| Cookie enabled browser checking in Javascript (0) | 2007/08/30 |
Trackback : Cannot send a trackbact to this post.
-
Subject different money making ideas
2010/01/29 02:52
moneyideas
-
Subject different money making ideas
2010/01/29 11:36
moneyideas
-
Subject different money making ideas
2010/01/31 16:45
moneyideas

Prev

Rss Feed