Sams Teach Yourself JavaScript in 24 Hours

Sams Teach Yourself JavaScript in 24 Hours

By Michael Moncur

Quiz

Test your knowledge of JavaScript graphics and animation by answering the following questions.

Questions

1:

Which two event handlers are used for a rollover?

  1. onMouseOver and onClick
  2. onMouseOver and onMouseUnder
  3. onMouseOver and onMouseOut
A1:

c. You create rollovers with the onMouseOver and onMouseOut event handlers.

2:

Which types of image maps can be used with JavaScript?

  1. Server-side image maps
  2. Client-side image maps
  3. Both types
A2:

b. Client-side image maps can be used with JavaScript.

3:

What is the JavaScript object for the second image on a page?

  1. image[2]
  2. images[2]
  3. images[1]
A3:

c. The second image on a page is represented by images[1].

Share ThisShare This

Informit Network