Enter the swap.html text into a new Web page, then load the page in the browser to verify that it behaves as described.
Modify the page so that it has a third image to the right of the existing images. In place of the single button labeled Swap Images, there should be two buttons on the page, labeled Rotate Left and Rotate Right. When the user clicks on the Rotate Left button, the SRC attributes of the images should be changed so that each image is shifted to the left (and the image originally at the far left is rotated around to the right). For example, if the three images were initially the three faces happy-?sad-?surprised (from left-?to-?right), clicking the Rotate Left button would result in the sequence sad-?surprised-?happy. Conversely, clicking on the Rotate Right button should shift the images to the right (with the rightmost image rotating around to the left).
```
Image Rotater
onclick="saved=document.getElementById('faceImg1').src;
document.getElementById('faceImg1').src=
document.getElementById('faceImg2').src;
document.getElementById('faceImg2').src=
document.getElementById('faceImg3').src;
document.getElementById('faceImg3').src=saved;">
```
You might also like to view...
The easiest approach to program event-driven three-dimensional object behavior is by using keyboard keys.
Answer the following statement true (T) or false (F)
What is an actual parameter?
A. The value passed into a method by a method call B. The value returned by a method C. The type of the method D. A variable declared in the method heading
A hierarchy is an arrangement where items are ranked and where each level is lower in rank than the item above it
Indicate whether the statement is true or false
In order to set all of the special permissions on a certain file or directory, which command below should be used on a file named filename?
A. chmod 777 filename B. chmod 7777 filename C. chmod 6666 filename D. chmod 0000 filename