IT 130: The Internet and the Web
Spring 2008
Assignment 3
Introductory Javascript
Due Friday April 25 before 11:30pm
Overview
You will create some pages with simple javascript as well as
explain how some javascript pages work.
Requirements
Create a Web page for each of the following exercises
from the Reed text:
- Exercise 4.2 (p. 62): Modify the Greet page so that the user's
name appears in bold and the output is broken into two lines.
- Consider the javascript in this web
page. Trace the javascript statements. On a separate web page,
explain step-by-step what happens in the javascript code when you
enter "snowy" into the dialog box. Your explanations should note
input, variable assignments, string concatenations, etc.
- Exercise 4.9 (pp. 71): I recommend that you start with a very
simple story and test it before you add more sentences. Your final
story only needs to be one paragraph and have three missing
words.
- Exercise 5.5 (p. 83): temperature conversion from celsius to fahrenheit.
The HTML files from the book are available
online.
Optional challenge for exercise 4.9: ask the user for his/her
favorite color and use this information to stylize the story. It
might help to read about nesting quotes on p. 74.
Once you have completed the four Web pages above, create a fifth
navigation page that provides links to the four exercise pages.
Format this page using a suitable list. Add your name. Instead of
using inline styles, specify and use a few styles using either
internal or external style selectors. See my page on CSS for examples.
When creating your page, make sure that your HTML code is readable
and follows common standards. Adhere to the following principles:
- Break up lines so that horizontal scrolling is not needed.
- Format your HTML code with blank lines, indentation and consistent
spacing so that it's easy to follow the structure of the HTML code.
This will help also help you check whether you have correctly open and
closed HTML tags.
Deliverables
Using the col
submission, tell me the URL of your navigation page.