<%@LANGUAGE="VBSCRIPT" %> <% Response.CacheControl = "no-cache" %>
Assignment 4

Materials to turn in on the server

  • In your Assign04 folder:
    • index.html
    • hover.html
    • js folder
      • jquery files
    • images folder
      • 7 images (1.jpg, 2.jpg, etc.)
      • other images
      • thumbs folder
        • 7 thumbnail images (1.jpg, 2.jpg, etc.)
    • images2 folder
      • 8 images (1.jpg, 2.jpg, etc.)
    • css folder
      • style.css

Expand/Collapse Section ImagejQuery sliding images

Description: In this lab, you will write an HTML page that uses jQuery to slide images back and forth.

 

Expand/Collapse Section ImageExercise Specifications - sliding images

  1. Download jQuery: http://docs.jquery.com/Downloading_jQuery
    • Place the jQuery .js file into the js folder
  2. Use Google images and find 7 pictures that you like
    • Resize and crop them to 630px wide by 330px tall
    • Save that image to your images folder (1.jpg, 2.jpg, 3.jpg, etc)
    • Resize and crop again to 75px by 75px
    • Save that image to images/thumbs/ folder (1.jpg, 2.jpg, 3.jpg, etc)
  3. Here are the other images to use
  4. Images of the finished product:
    • At rest, notice the left/right arrows and dots below image
    • Mouse over one of the dots shows preview of that image
  5. Write the HTML5 first (see code)
  6. Write the CSS second (see code)
    • After writing the CSS, without errors, yours should look like the 'at rest' image above
  7. Write the jQuery/JavaScript third (see code)
  8. Code
    • Here is the code for this entire exercise. Proper use would be: look at the code to make sure you are approaching the assignment the correct way. Then try to do it on your own. Then use the code to make sure you've done it correctly. Improper use would be: copying without interpreting, which would result in not really learning what you're doing. The code is provided to help you be successful and so that you don't have to ask as many questions about the assignment.
    • index page code
    • css code

 

Grading

Total 10 pts