JavaScript Assignments



Assignment #7

  1. Create a basic page using the circle of marbles.
  2. Using what you know about the setTimeout() method, create an animation on the page that makes an orange marble rotate around the circle by moving the orange marble to the next location in the circle every second.
  3. Allow the user to stop the animation by placing the cursor on any marble.
  4. Allow the user to restart the animation by removing the cursor from that marble.
  5. Add your own interesting feature to the script that tinkers with the speed or location of images.

Reading Assignment in JavaScript for the World Wide Web:

Ch. 8, p. 155-192 (Forms)
Ch. 12, p. 255-272 (Cookies)