Make the appropriate changes using javascript to the html

Assignment Help Business Management
Reference no: EM131985448

Make the appropriate changes using JavaScript to the HTML below

1. You will add event handlers to the thumbnail images and to the larger image.

2. All of your event handlers must execute only after the page has loaded.

3. You are going to add a click event handler to each of the thumbnail images. When the smaller image is clicked, you code will show the larger version of the image in the <img> element within the <figure> element. This same even handler will also set the <figurecaption> text of the <figure> to the clicked thumbnail image' title attribute. Your event handler must use event delegation (I.E., the click event handler will be attached to the <div id=thumbnails'> element and not to the individual <img> elements).

4. You must also add event handlers to the mouseover and mouseout events of the <figure> element. When the user moves the mouse over the larger image, then you will fade the <figcaption> element to about 80% opacity (its initial CSS opacity is 0% or transparent/invisible).When the user moves the mouse out of the figure, then fade the <figcaption> back to 0% opacity. You can set the opacity of an element in JavaScript by setting its style.opacity property.

~~~~~~~~~~~~~~HTML~~~~~~~~~~~~~~~~~~~

<!DOCTYPE html>

<html lang="en">

<head >

<meta charset="utf-8">

<title>Chapter 9 - Share Your Travels</title>

<link rel="stylesheet" href="css/styles.css" />

<script type="text/javascript" src="js/chapter09-project02.js"></script>

</head>

<body>

<header>

<h2>Share Your Travels</h2>

<nav><img src="images/menu.png"></nav>

</header>

<main>

<figure id="featured">

<img src="images/medium/5855774224.jpg" title="Battle" />

<figcaption>Battle</figcaption>

</figure>

<div id="thumbnails">

<img src="images/small/5855774224.jpg" title="Battle" />

<img src="images/small/5856697109.jpg" title="Luneburg" />

<img src="images/small/6119130918.jpg" title="Bermuda" />

<img src="images/small/8711645510.jpg" title="Athens" />

<img src="images/small/9504449928.jpg" title="Florence" />

</div>

</main>

</body>

</html>

Reference no: EM131985448

Questions Cloud

What is the expected range of current : A resistor with color bands of yellow, violet, brown, and gold is placed across a 12-volt source. What is the expected range of current?
Connected one after the other : If resistors A, B, C, and D are connected one after the other (which means they are in series), and then one end of resistor E is connected to the point between
What is the time the signal is high for each period : A periodic signal has a duty cycle of 25%. If the signal is LOW for 25.5 microseconds for each period, what is the time the signal is HIGH for each period?
Useful for decision-making-variance or standard deviation : Which is more useful for decision-making; variance or standard deviation? Why? What is the relationship between the two?
Make the appropriate changes using javascript to the html : Make the appropriate changes using JavaScript to the HTML below 1. You will add event handlers to the thumbnail images and to the larger image.
Compare dsl and cable internet connections : Compare DSL and cable Internet connections based on availability, consistent high speed, reliability, security, and price.
Write a paper about any disease or condition of the body : Write a paper about Any disease or condition of the body. The required elements: Your paper should contain the following elements in the order listed below.
Examine the model of procurement of honda : BUSS 1503 - Procurement management - Examine the model of procurement of Honda and Critically analyze the advantages of the procurement strategies of Honda
Users in the engineering department need a higher level : Users in the Engineering Department need a higher level of access on their local computers than other users do.

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd