CS531 02                                                       Assignment 2
Due 11/01/2017

A. HTML Forms

Modify the Web pages developed in assignment 1 with the 5 more additional HTML5 Web Page elements (not include the Audio and Video used in the Crap game) listed in the textbook.  

B. HTML Web Pages with JavaScript

Modify the Web pages developed in assignment 1 using JavaScript with the following features:

1. Input data validation
All the input data items must be validated before been sent to the CGI/Perl script. You can design your own validation criteria for different fields.

(Please use both the alert function and innerHTML to display the errors.)

2. Rich web page presentation
Make the web pages rich with the features similar to the examples on the textbook. The JavaScript must have the following:

-Selection control statement

-Repetition control statement (Display a table with alternate row background colors as shown on Fig 8.6 of the textbook.) 

-Functions

-Arrays

-Objects (should include a Date object on your web page to display the local date and time info.)

-Events.

3. Dynamic HTML presentation

-Add animations/slide show, pull-down DHTML menus, and computer games using JavaScript on the web page.

-Implement the Craps game listed in 9.6 of the textbook on your club website.

·          Craps Game Code

 Implement the Draw program listed in 13.3 of the textbook on your club website.

·         Draw Program Code

-You may also find and add more dynamic HTML applications on the Internet.

Homework Hand in Policy:

1. Write a MS word report with the full screen shots that describes the major steps of your development process using the Dreamweaver, any problems that you have solved, and run results.

Submit the report and your HTML5 files with the Javascript code via the drop box on the class Sakai web site before the due day.

2. Demonstrate your web site to the class on the due day.