CSC 370: The Week beginning Feb. 22 |
Art Slide Show
Create a table with four rows. Place an image in the top row and four buttons in the
bottom row. Make the buttons the same size and color. Double click on the buttons. In the
script region of the functions but not inside any function declare variables for Artist
fisrtname, lastname, painting title and image file name. A head start as well as the
image files is provided in
ArtSlideShowZiped.zip. The buttons should change a
number to be used as the index of a set of arrays. The first button should set this number
to zero. The second button should decrement this number (unless it is equal to zero, then
it just remains zero). The third button should increment this number (unless it is at its
highest value, then it should remain fixed). The fourth button should set the number to
the highest possible index value. The button functions show all call a display function. The
display function should use image's src property to change the image. (Remember to give the
image an id.) Use the appropriate cell's innerHTML or innerText property to insert the
painting's title and the artist's first and last name in the appropriate rows.