CS 290w
Assignment 4
Due October 29, 1999 by 11:59 p.m.
Instructions on how to turn it in will be announced.
Total Points: 100
- Your site's home page must have two vertical frames: a menu frame and a contents frame.
The menu frame must use 20% of the document window and display a menu. This can be the menu
you created for assignment 3. The menu frame must use JavaScript to
give *focus* to the contents frame when the user chooses a menu item (30 pts.)
- A menu item must open up a new window that contains a slide
show. The images that you display can be the images from
assignment 3, or they can be other images you'd like to use. This pop-up window must
contain a forward and backward button to advance or rewind the slide show.
In addition, include a close button to close the window, using "window.close".
This is so that only one slide show window is open at a time.(20 pts.)
- Another menu item must load a form in the contents frame
that has at least four "required" fields for users to enter data. Use JavaScript
event handlers to validate that the fields do contain data. In addition,
the validation must check for appropriate data types and data ranges and alert the
user if the entries do not meet the specifications you have provided. It is up to
you to decide where to validate the form. You can validate each field as the user
fills out each field, or you can validate the whole form at once, when the user clicks the submit
button. Please attend the Oct. 18 or 19 help session regarding form validation.
Details in the newsgroup. (30 pts.)
- Write your first Perl program. Using the appropriate environment variable, check to see which
browser the visitor to your site is using. Using the "print" command, write to the
current document and tell the user which browser he/she is using. (20 pts.)