Top 50 Downloaded Books |
1. (50 points) The textarea (named t) is in a form named f1 (shown to the left) that contains Project Gutenberg's latest list of most often downloaded books (Project Gutenberg provides free downloads of famous books). The list contains the top 50 books downloaded on Oct. 17, 2010. The format of the list is:
Title, Author, Number of downloads for the day, Each entry is separated from the next by a comma. Thus, there are 150 comma separated items (50 book titles, 50 authors and 50 counts). The button labelled "Execute p1" causes a vbscript sub named p1 to be executed. The sub p1:
|
This is a DIV block with id="p2_out
| 2. (50 points) In the textarea to the left is the first chapter of Theodore Roosevelt's book "The Winning of the West" (1896). This textarea is named tr and is in a form named f2. There is also a button labelled "Execute p2" which when clicked executes a javascript function name p2. The function p2 performs the following actions:
Assume an array named caps is already is defined in p2 like this:
Show NO HTML. Show only the javascript for p2. |