| PA#1 - Welcome to XHTML and JavaScript - 30 pts
Readings
1. Read chapter 1 in Learning Javascript, by Shelley Powers
2. Write the XHTML and JavaScript that will produce the following:

3. The program should work as follows:
a. The page should open with a white (that's the default) background and the words "This is my first attempt at HTML and JavaScript" in large (h1) letters.
b. The background should then turn another color (yellow in this example) using JavaScript and a hexadecimal number for the color (NOT a color name).
c. A dialog box should then appear saying "I feel so powerful?".
d. The program should contain both HTML comments and JavaScript comments (one of each is fine, but you may have more).
4. Name the file: p1.html and put it in the p1 directory that you created in lab last week. If you don't remember how to do that, come and see one of us immediately. DO NOT email one of us your assignment. It will not be accepted as an email attachment. It must be in the p1 directory by 9:00 p.m. on Friday, October 5th.
5. HAVE FUN!
|