displaying a date.

Here is a handy script for you to use if you would like to display the day on your page. It would display the day of the browser's pc's day, therefore time differences would not be a problem. Below is an example of the result of the script:



Simply copy and paste the following code into the < body > tag of your html code. p.s. I spend quite a lot of my time writing these scripts, so it would be great if you could leave the credits alone.

<script language="Javascript">
/* Javascript designed & written by Nora Jiang @ www.faded-chimera.net */
/* Displaying a date */

var now = new Date();
var day = now.getDay();
var lejour;
if (day == 0) {
lejour = "Sunday";
}
if (day == 1) {
lejour = "Monday";
}
if (day == 2) {
lejour = "Tuesday";
}
if (day == 3) {
lejour = "Wednesday";
}
if (day == 4) {
lejour = "Thursday";
}
if (day == 5) {
lejour = "Friday";
}
if (day == 6) {
lejour = "Saturday";
}
document.write("It is " + lejour + " today."); // Edit text here
/* Javascript designed & written by Nora Jiang @ www.faded-chimera.net */
</script>