Top 100 Global Franchises |
1. (50 points) The textarea named t100 (shown
to the left) is in a form named f1 that contains the top 100 global franchise rankings.
For each franchise there are four pieces of data separated by semicolons.
Each franchise is separated from the next one by a "*" character. The format of the four data items for each franchise is:
(a) rank followed by a semicolon; (b) company name followed by a semicolon; (c) country followed by a semincolon;
and (d) industry category followed by a "*" (except the last one). There is a button labelled "execute p1", that when clicked executes the javascript function named p1. This function: Show NO HTML. Show ONLY the javascript code for the function named p1. this is DIV with id=p1out
http://www.franchisedirect.com/top100globalfranchises/rankings/ |
|
2. (50 points) The DIV block shown to the left has id="p2out" and contains 500 random digits separated by single spaces.
The ten radio buttons shown below p2out are in a form named f2. The radios are:
window.document.f2.elements(0);
When the button labelled "execute p2" is clicked, the vbscript sub named p2 is executed. This sub:
Show NO HTML. Show ONLY the vbscript code for the function named p2. |