http://en.wikipedia.org/wiki/List_of_best-selling_books | 1. (50 points)The textarea named ta to the left is wikipedia's list of all time best selling books in a form named f1. There are 124 books in the list. Each book listed contains:
When this button is clicked the sub named p1 is executed. This sub:
This is the DIV with id="p1out"
Show NO HTML. Write only the vbscript for p1. |
2. (50 points) As a boy of 16 George Washington copied the 110 maxims at the left as a penmanship exercise. "The Rules of Civility and Decent Behaviour in Company and Conversation" are based on fifteenth century French documents and were translated into English in 1640. The textarea to the left is named ta2 and is in a form named f2. The 110 rules of behavior appear in the textarea separated by the "*" character. Assume that the javascript function named p2 has a string named tstr composed of the following 36 bytes: var tstr = "abcdefghijklmnopqrstuvwxyz0123456789"; Further, assume you have an array named c containing 36 elements. When this button is clicked, the javascript function p2 is executed that:
This is the DIV block with id="p2out"
Show NO HTML. Show only the javascript for p2. |