To ask now what is the most popular design of the personal homepage, I think it should be in the beginning of the homepage! Its method is very simple, just add the following program code to:
VAR TODAY = New Date;
Var Week = New Array (7);
Week [0] = "God";
Week [1] = "One";
Week [2] = "two";
Week [3] = "Three";
Week [4] = "four";
Week [5] = "five";
Week [6] = "Six";
Document.write ("Today" Today.Getyear () "Year" 1) "Month" Today.Getdate () "Day; Week" Week [Today.getDay ()]);
// -> script>
To remind everyone is:
1. Tell me note of the month's representation, getMonth () is 0-11; 0 means January, 1 means that in February, so we have to display a month. 1.
2. In addition, Java has also considered two thousand questions. Java displays two numbers in Java, as smaller than 2000, showing four digits when it is greater than 2000. Avoid two thousand years of problems.