1. (50 points) The textarea to the left contains data on the best 250 images from the Hubble Space Telescope. The data is stored in XML using the DTD:
<!ELEMENT hubble (image+)> When the button to left is clicked, a function named p1 is executed. This function:
NOTES:
| |
|
2. (50 points) The following two-dimensional array named top_10 contains real estate information about ten houses for sale.
var top_10 = [ [ "jk5623", "3","2.0", "pool, detached garage", "1344 Pine Street", "77091", "3400", "313000", "pic0.jpg"], [ "rw3298", "4","4.0", "detached garage", "3123 Apple Street", "77112", "3209", "493000", "pic1.jpg"], [ "me4596", "4","2.5", "pool, attached garage", "5123 Oak Avenue" , "77141", "3100", "223000", "pic2.jpg"], [ "tg6098", "4","2.5", "pool, attached garage", "3202 Elm Street" , "77342", "3700", "353000", "pic3.jpg"], [ "ws9821", "4","3.0", "tennis attached garage", "1231 Birch Street", "77154", "2900", "213000", "pic4.jpg"], [ "nk6055", "4","2.5", "tennis, attached garage", "7654 Redwood Street", "77656", "4300", "273000", "pic5.jpg"], [ "cd6339", "4","2.0", "detached garage", "3322 Fir Avenue", "77767", "3340", "323000", "pic6.jpg"], [ "cd2321", "4","2.5", "attached garage", "6479 Palm Street", "77212", "3126", "453000", "pic7.jpg"], [ "rw1134", "4","2.0", "attached garage", "4312 Oak Avenue", "77878", "2873", "323000", "pic8.jpg"], [ "jk2011", "4","3.0", "detached garage", "5078 Lemon Avenue", "77323", "3045", "273000", "pic9.jpg"] ];The nine columns for each real estate property are:
You are to a table with five table cells. The table has three rows. The first two rows have two table cells and the third row has only one table cell. When the button label "go" is clicked a javascript function named p2() is executed. This function p2() performs five tasks. The output of each of the five task is to be placed in one of the five table cells.
NOTES:
|
|