CSC 105

Forms Lab

Part Two: Control Buttons

In this part of the lab, we will add some form elements that act as page controls. Specifically, we will add buttons that will change the src of the image at right when they are clicked. Since you should be familiar with image swapping by now (it is the mechanism behind rollover images), the only new thing here should be the button and its onClick event.

To Do

One example button appears above. Look at the source to see how this one works. Then add two more buttons that will change the image source to point to pig.gif and back to rooster.gif, respectively.