Writing function that creates a string of path to directory
Course:- Other Subject
Reference No.:- EM132281436

Assignment Help
Expertsmind Rated 4.9 / 5 based on 47215 reviews.
Review Site
Assignment Help >> Other Subject

Question: Given a folder with images in it, create an HTML page named index.html that contains links to each JPEG file in the directory as follows:

• Write a function that creates a string of the path to a directory

• Generatea thumbnail (half the size) copy of each image

• Use makeEmptyPicture to create a blank picture in the correct size, then scale down the original picture into the blank picture

• Name the new image "half-" + the original filename (e.g., if the original filename was fred.jpg, save the half-size image as half-fred.jpg). The anchor in the link to each full-size picture should be the half-size image.

Capture a screenshot of your code and output. Paste the screenshot into a Word document.


Put your comment

Ask Question & Get Answers from Experts
Browse some more (Other Subject) Materials
In this paper we analysis pros and cons associated with the implementation of Semantic Web in Social computing and give a brief idea about some of the developments in this con
Create a six-panel brochure which does the Differentiates between "psychological disorders" and "abnormal behavior - Describes the classification to which depression belongs
In a particular telephone poll, useful information has been obtained on 40 percent of the calls. A pollster makes ten calls. What is the probability that At least four calls a
hare a situation from your workplace FIRST SERGEANT UNITED STATES ARMY (or other professional environment for that matter) that would benefit from how Abrashoff handled vari
At this stage you should have a clear indication of "The Project Aims and Objectives", "Project Outlines" and preliminary ideas on the "Scholarly Contributions of the Projec
Describe at least three different scenarios where you (as a counselor) would be obligated (ethically and even legally) to break a client's confidence and describe the steps
Create criteria that can be used to evaluate websites based on how effective they are, how easy they are to use, and whether or not they are suitable for their intended purpos
Imagine that you run a photography printing store. Your employees have been using punch cards for time entry since you started the business. This has lead to many problems inc