1. Open Photoshop by clicking the icon on the dock:



  2. Create a new document by pressing +N. Set the attributes to match this picture:



  3. Using the paint brush or the pen tool create a head shape.

    Brush

    1. Select the color you want to use by clicking on the colored square on the left in the tool palette:



    2. Move your cursor around until you have the color you want, then press OK:



    3. Select the paint brush



    4. Adjust your brush size
      You can change the size using the option menu



      1. Move slider to adjust size:

      2. Click on your document to close dialog box


      Or you can change the size using the square bracket keys on the keybaord.
      [ makes the brush smaller
      ] makes the brush bigger


    5. Paint in a head shape that fills the shape.





    Pen tool

    1. Select the color you want to use by clicking on the colored square on the left in the tool palette:



    2. Move your cursor around until you have the color you want, then press OK:



    3. Select the pen tool



    4. Select the first Option at the top menu



    5. Click and pull (to get a curve) around to create a shape about the same size as the gray shape. Continue until you have completed the shape:





  4. Save for web (+OPTION+SHIFT+S) as (replace the square brackets and word last_name with your last name) [last_name].png in the heads in the faces in the class folder.


  5. Drag the image below onto your desktop



  6. Drag hair.png from the desktop over the Photoshop icon on the dock



  7. Now that the file is opened in Photoshop, create a new layer by pressing
    +SHIFT +N


  8. Using the brush tool or modifying an image from demos_and_samples:a_photos:body_parts or the pen tool create the hair shape.


  9. Turn off the background layer by clicking on the eye to the left of the thumbnail image


  10. Save for web (+OPTION+SHIFT+S) as [last_name].png in the hair in the faces in the class folder.


  11. Create a new Photoshop document with the following attributes



  12. If rulers are not turned on, press +R to turn them on.


  13. Click in the rulers on the right and top and drag guides to match the image below


  14. Using the brush tool or modifying an image from demos_and_samples:a_photos:body_parts create one of the eyes shape. Make this happy eyes.


  15. When 1 eye is complete, press +J to duplicate the layer


  16. Press V on the keyboard to select the move tool


  17. From the top menu select Edit>Transform>Flip Horizontal



  18. Click and drag your eye to the other side of the document so that now you have 2 eyes


  19. Save for web (+OPTION+SHIFT+S) as [last_name].png in the happy_eyes in the faces in the class folder.


  20. Turn off the layer or layers you created


  21. Create a new layer by pressing
    +OPTION+SHIFT +N


  22. Using the brush tool or modifying an image from demos_and_samples:a_photos:body_parts create an angry eye.


  23. When 1 eye is complete, press +J to duplicate the layer


  24. Press V on the keyboard to select the move tool


  25. From the top menu select Edit>Transform>Flip Horizontal



  26. Click and drag your eye to the other side of the document so that now you have 2 eyes


  27. Save for web (+OPTION+SHIFT+S) as [last_name].png in the angry_eyes in the faces in the class folder.


  28. Create a new document with the following attributes:


  29. Set up the guides like below



  30. Using the brush tool or modifying an image from demos_and_samples:a_photos:body_parts create a nose shape.


  31. Save for web (+OPTION+SHIFT+S) as [last_name].png in the noses in the faces in the class folder.


  32. Create a new document with the following attributes:



  33. Match the guides



  34. Using the brush tool or modifying an image from demos_and_samples:a_photos:body_parts create a happy mouth shape.


  35. Save for web (+OPTION+SHIFT+S) as [last_name].png in the happy_mouths in the faces folder in the class folder.


  36. Turn off the layer or layers you created


  37. Create a new layer by pressing
    +OPTION+SHIFT +N


  38. Using the brush tool or modifying an image from demos_and_samples:a_photos:body_parts create the angry mouth.


  39. Save for web (+OPTION+SHIFT+S) as [last_name].png in the angry_mouths in the faces folder in the class folder.



Web Page

  1. Open BBEdit by clicking on the icon on the dock




  2. To create a new HTML document press +CTRL+N.



  3. Make sure XHTML 1.0 Strict is selected

  4. Give your document a title (This is what appears on the top of your browser).


  5. Press OK


  6. Save the document as face_game in your web folder and include the extension .html


  7. Add a pair of <div></div> tags:
    .
    The div tags make sure that you do not include content that is floating in space.

  8. Locate the <head> tags:
    head.png
    The <head> area provides information for the browser


  9. Inside the <head> tags add a javascript declaration
    <script type="text/javascript">
    //<!--
    
    
    //->
     </script>    
     

  10. Create an array to hold the head images:
    heads=new Array();
    	heads[0]="../../../../liz_arum_classes/[class name]/heads/[last name of a student in class].png";
    	heads[1]="../../../../liz_arum_classes/[class name]/heads/[last name of a student in class].png";
    	heads[2]="../../../../liz_arum_classes/[class name]/heads/[last name of a student in class].png";
    	heads[3]="../../../../liz_arum_classes/[class name]/heads/[last name of a student in class].png";
    	//continue for number of students in class
    	



  11. Create the arrays for happyEyes, angryEyes, happyMouths, angryMouths, noses and hair. Remember that angryEyes are in a folder called angry_eyes, happyEyes are in a folder called happy_eyes, angryMouths are in a folder called angry_mouths and happyMouths are in a folder called happy_mouths.


  12. Still inside the script tags add the following function which will display a random head on your page:
     function updateHeads(){
        rand=Math.floor(Math.random()*heads.length)
        document.getElementById("head").src=heads[rand];
    }



  13. Create functions for happyEyes, angryEyes, happyMouths, angryMouths, noses and hair. You should copy and paste and then change each instance of the word head to the appropriate word:
     function update[Word](){
        rand=Math.floor(Math.random()*[array name].length)
        document.getElementById("[word]").src=[array name][rand];
    }



  14. Create a function called getAngry and call each of the other functions:
    function getAngry(){
        updateAngryEyes();
        __________
        __________
        __________
        __________
        }



  15. Create a function called getHappy and call each of the other functions:
    function getHappy(){
        updateHappyEyes();
        __________
        __________
        __________
        __________
        }



  16. Create a function called getFace. This function will pick a random number between 0 and .9. You will test if the number is less than .5. If it is call getAngry(), otherwise call getHappy():
    function getFace(){
        if(Math.random()<.5){
        __________
        }else{
        __________
        }
    }



  17. Find the <body> tag and add a function onload which calls getFace():
       <body onload="______________;return true;">



  18. Inside the div element add the following which sets up the buttons and the images. :
    <!-- By setting action to # the page reloads itself when a button is clicked-->
    
     <form id="face" method="post" action="#" >
        <div>
        <input type="button" value="[what you want written on the button]" onclick="getAngry();return true;" />
        <br />
        <input type="button" value="[what you want written on the button]" onclick="getHappy();return true;" />
        <br />
        <input type="button" value="[what you want written on the button]" onclick="updateHeads();return true;" />
        <br />
        <input type="button" value="[what you want written on the button]" onclick="[function that changes noses];return true;" />
        <br />
        <input type="button" value="[what you want written on the button]" onclick="[function that changes hair];return true;" />
        <br />
       </div>
    </form>
     
    <!-- the following places all the images on the page-->
    <img src="" alt="" id="head" style="padding:0em;position:absolute;top:150px;left:270px;" />
    <img src="" alt="" id="eyes" style="padding:0em;position:absolute;top:270px;left:280px;" />
    <img src="" alt="" id="nose" style="padding:0em;position:absolute;top:430px;left:280px;" />
    <img src="" alt="" id="mouth" style="padding:0em;position:absolute;top:490px;left:280px;" />
    <img src="" alt="" id="hair" style="padding:0em;position:absolute;top:50px;left:200px;"  />
    



  19. Save and preview

Linking

  1. Open index.html


  2. Navigate to your table


  3. Copy the last row:
    <tr>
        <td class="assignment"><a href="last_assignment.html">last assignment</a></td>
        <td class="description">Applications used</td>
        <td class="date">9/20/05</td>
    </tr>  
    and paste beneath it:
    <tr>
        <td class="assignment"><a href="last_assignment.html">last assignment</a></td>
        <td class="description">Applications used</td>
        <td class="date">9/20/05</td>
    </tr>
    <tr>
        <td class="assignment"><a href="last_assignment.html">last assignment</a></td>
        <td class="description">Applications used</td>
        <td class="date">9/20/05</td>
    </tr>



  4. Change the first column to:
        <td class="assignment">Face Game</td>
        



  5. Change the second column to:
        <td class="description">BBEdit, Photoshop and Javascript</td>
        



  6. Change the third column to:
        <td class="date"></td>
        



  7. In cell 1 of this row set up an anchor container (a link) around the text you added, linking it to the timeline page in your web folder


    1. Hilite the word Rollover
    2. Press +CTRL+A
    3. Click on the File button
    4. Navigate to the rollover page in your web folder
    5. Click on the Choose button
    6. Click on the Apply button