I am a new programmer. Please take a look at the following program plan. What language should I use? How should I do it?
Here it is:
I want to create a dynamic web document that alternates between two webpages, one per week, for a week one and a week two. Here is my plan:
Every Sunday I can have a "week" variable turn from 1 to 2 or 2 to 1, the value of "week" determines which html page, or (if it's easier) which section of code, is displayed.
If current day=sunday, then do this:
If week=1 change to week=2
Else change to week =1
If not, don't do anything.
If week=1 display week1.html
If week=2, display week2.html
Here it is:
I want to create a dynamic web document that alternates between two webpages, one per week, for a week one and a week two. Here is my plan:
Every Sunday I can have a "week" variable turn from 1 to 2 or 2 to 1, the value of "week" determines which html page, or (if it's easier) which section of code, is displayed.
If current day=sunday, then do this:
If week=1 change to week=2
Else change to week =1
If not, don't do anything.
If week=1 display week1.html
If week=2, display week2.html