| Assignment #2 Create a new page. In separate prompt boxes, prompt the user to supply his or her name and then 5 words. Save each item in a separate variable. Then, using window.document.write() statements, use the information stored in variables to display a "mad libs" type of story, i.e. create a few paragraphs of information in story format. To help the user, you may want to provide descriptions of the types of words that you are looking for in each prompt box. Feel free to use one of these text samples or one of your own. Modify your "mad libs" script so that it also prompts the user for a color and stores this color in a variable. Then, in the "mad libs" story, highlight each of the nouns, verbs, and adjectives collected from the user by setting their font color to this color and placing them in bold face type. Reading Assignment in JavaScript for the World Wide Web: Ch. 1, p. 7-9 (review objects and event handlers)Appendix, p. 447-462 (object flowchart - just take a look, no need to read thoroughly) Ch. 4 p. 59-62 (rollovers - don't read remainder of chapter yet) |