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
Based on the financial analysis techniques, suggest a cost-effective plan that might use this information to track women's morbidity and mortality trends in your home state
Your structured external assignment will be grade on the following criteria: How well you explain the mental process being reviewed and How well you apply the mental process t
You have just created two separate worksheets. One of them contains information about your company’s revenues for this year and the other further explains the sales revenues
How does discretionary power influence the public administrator's role in implementing public policy? In your experience, what are the safeguards from abuse of discretionary
The set of obligations that an organization has to protect and enhances the societal context in which it functions - purpose of business in U.S. society is to generate profit
What rationale did you use to choose the option you chose for Our Town Photography?  What changes would you recommend to the marketing mix for the Our Town Photography Premier
How many children with wheezing were prescribed medication? From those result, what is the risk ratio? Is the risk ratio for being prescribed medication for asthma higher or l
n the file is a description of the land that states that a certain parcel of land located at 835 S. Bridle Road, Jackson, Wyoming, Cook County, consisting of 15.34 acres of