|
Homework
All HTML code in this class must pass HTML5 validation using the W3C validator.
CSS and links must also be checked with
these tools.
When you are done, notify the instructor of your submission by filling out the
Homework submission form link at the end of the homework.
HW4, due 12/9 (no extensions):
- Improve the slide show example from the lectures by modifying it to have a thumbnail strip that scrolls left/right when the user clicks on one of the
arrow icons.
- Each scrolling operation will smoothly move a number of off-strip
pictures into view then stop (a part of an old picture should still be in view).
We do not want newly visible pictures to move off the strip until the next scrolling operation.
- The scrolling stops automatically after the last picture, on either end,
moves fully into view.
- The strip also has a space where a full size picture may be displayed.
- On clicking on a thumbnail it makes the picture the current picture.
The current picture in the thumbnail strip is highlighted by a border
and the original-size picture is displayed
in the area above the thumbnail strip, nicely positioned and formatted.
- On mouseover, a thumbnail displays the
- Add a caption to each picture and on mouseover of the thumbnail display
the caption as a tooltip on the thumbnails and when the full-size picture is displayed, add it as an actual caption
for the picture.
- Your Javascript code should be easily customizable with parameters:
width, height, background color of the strip, size of the thumbnails,
the arrays of the image URLs and the picture captions, and the arrow icons.
Your solution must contain at least 12 pictures of your choice.
-
Once you have validated the webpages on webdev and they are free of errors, the homework information using the
Homework submission form.
HW3, due 11/25:
HW2, due 10/23:
-
Create a subdirectory "hw2" in your course home directory "/var/www/html/username" on webdev.
- Create three pages.
-
For the first two, rename the two files "index.html" and "imagemap.html" created in Homework 1 to "index.php" and "imagemap.php", and modify them as follows:
- Instead of the HTML defining the header and top buttons, the left nav panel on the "index.php" page , and the right aside buttons, include 3 files called
"head.php", "nav.php" and "aside.php" using php. If you find you need more include files or css files, use them.
- Replace all the styling commands in ALL the files including those included with CSS contained in seperate files, titled "index.css", "head.css", etc.
- Use tables to format the pages as two or three columns rather than floats.
- Replace the style for the top banner with one with a dark blue background and right adjusted yellow text which starts at the very top of the page.
Make the links on the top banner white with no decoration (not underlined), which go grey when visited, and bold yellow when the mouse is over the link. Use the same color scheme for the links in the left.
-
For the external links in the right aside, use the same color scheme except make the link red when the mouse is over them, and display the external page in a different tab when clicked.
- The page contents for "index.php" should be the same as those in homework 1. On clicking any homework link on the left nav bar the homwork page with the right aside bar should be displayed as before but the contents of the homework page (imagemap.php") should be displayed in an iframe which scrolls under the top banner.
- Ensure that the page is optimized for a standard browser window size, and that it works in Firefox and Chrome.
- All HTML code must pass HTML5 validation using the W3C validator.
Any validation errors, will result in a penalty of at least 15 points.
- The CSS files must pass CSS level 3 validation.
-
Once you have validated the webpages and they are free of errors, submit the homework information using the
Homework submission form.
HW1, due 10/2:
Review the slides and read Chapter 2 of the textbook .
Each student will create his/her wp1 course page and a page with an image map and place them on your course web space (/var/www/html/USER_NAME ) on the machine webdev.cs.kent.edu in the file index.html and imagemap.html.
(They will be accessible as http://webdev.cs.kent.edu/USER_NAME/index.html etc.)
Your course home page should be titled "Your Name Web Programming I Class Home Page".
-
Create a template for your homepage of the form
index.html.
Call it index.html. The content part should contain:
- A photo of you left adjusted with text to the right of it.
- Basic personal info such as your name, ugrad/grad, major, class rank
-
The links on the header should link to the Kent State home page, the Computer Science home page, the WP1 course home page and YOUR WP1 home page.
-
Link the Image Map entry on the main navigation bar to a second (Homework) page of the form
imagemap.html.
- Link the aside links on the right navigation panel back to the relevant pages in the course site.
-
On the imagemap.html page
You may use this sample HTML5 file
to get started.
See website access page
for how to access your course account and set up
your web space.
Your goal in this homework is to
- Access your course web page (
/var/www/html/USER_NAME ) and create or download the file index.html and the other files described later.
(That will be accessible as http://webdev.cs.kent.edu/USER_NAME/index.html) etc..
- Upload files and folders of your homework (from your desktop/laptop)
to a sub-folder of
/var/www/html/USER_NAME called wp1on
webdev.cs.kent.edu using sftp.
Then you can access your pages (say wp1.html) from your browser and verify the appearance with
http://webmail.cs.kent.edu/your_userid/wp1/filename.html
To submit
- Validate the HTML5 of each page using the link below.
If there are errors or warning correct the page.
-
Once you have validated the webpages and they are free of errors, submit the homework information
using the
Homework submission form.
| |