V22.0005 - Spring 2003
Assignment # 4

Due: Thursday, March 13th (day of the Midterm)


Projects should be posted on your I5 Web account under the name "assign4.html"

Be sure to email pnp2@cs.nyu.edu to turn in your assignment.


This assignment combines cookies and style sheets.

Provide a Master Link Page called assign4.html which has links to 1) the External Style Sheet, 2) the Setup Page and 3) the Display page.

First, create an External Style Sheet that has three different styles in it. The three styles should differ in 1) Font (really, Font Families) 2) Color and 3) Margins

Then, create two web pages: 1) a Setup Page and 2) a Display Page

The Setup Page should contain a text box and a series of Radio Buttons. It should first check to see if you have previously set cookies.

If you HAVE NOT set a cookie before, the Setup Page should display some generic, default text in a text area (e.g., some basic instructions on how to proceed) and have the Radio Buttons set to your default choices.

If you HAVE set a cookie before, the Setup Page should display the text from the cookie in the text area, and set the Radio Buttons to the values found within the cookie.

The Setup Page should have these elements:

The Display Page should first check to see if you have previously set your cookie. If you have NOT set a cookie, it immediately links you to the Setup Page.

If you HAVE set your cookie, it displays the page using the text and preferences you have set in the Setup Page and saved in the cookie.

Note that the Display Page does not change until it is loaded the next time. In other words, it does not change immediately when you press a radio button or change the text on the Setup Page.