//MAKE: 2.11 Skill-builder: Roll some dice

Resources

Saving your work

Use Save as... to save the empty template as "2.11S-RollSomeDice-LastName.html" in your Computer Programming 12 directory.

The assignment

Create a program that uses Javascript makes a random image appear when someone mouses over something.

  1. Create a page with instructions on what element to roll over
  2. Add an id and a onmouseover event to that element
  3. Create a function that will randomly roll a die
  4. Make a different image or symbol appear depending on which number is rolled.

For example

Mouse over the question mark to roll a die...
random images will appear here