Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Summer 2005 - Homework 4

Given a folder with different files in it, create an index HTML page with links to each image.

You will write a function called pictureLinks that takes a string which is the path to a directory. You will create a page in that folder named index.html. Index.html should be an HTML page containing a link to every JPG file in the directory. If there are no JPG files in the directory, the function should still create the index.html file, but with no links in it.
NOTE: The index.html file that you generate must be proper html with all proper and necessary tags.

For each image, you will display a 100 pixel height version of the image (by setting height="someNumberHERE" in the img tags). YOU WILL NOT GENERATE THESE IMAGES! Clicking on these thumbnail versions should take the viewer to the full-size picture. The anchor in the link to each full-size picture should be the thumbnail image.

Turn in your program via webwork as "HW4". The function name should be "pictureLinks" and the program file name should be "pictureLinks.py".

Ask questions on Summer 2005 Homework 4 Questions

Link to this Page