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

  Challenges and opportunities as they relate to its niche

Assess challenges and opportunities as they relate to its niche, competition, and position in life cycle (Jeep)

  Why commercial banks are reluctant to loan money to start-up

In one page or less answer the question, why commercial banks are reluctant to loan money to start-ups?

  What was a pressure for change

After reading the chipping away at Intel case study what was a pressure for change? Give an example of a similar pressure for change that was experienced by another organization.

  Analyze political and social as well as legal differences

Analyze political, social, ethical as well as legal differences facing both organizations as well as determine the impact these differences have on management decision making

  Please assist with response to discussion comment

I am trying to learn more about American politics since this last election has brought out the worse in so many peoples opinions.

  What would higher productivity mean to business or service

How would you use partial productivity and multifactor productivity measures to help you understand where productivity can be improved at these businesses? What would higher productivity mean to the business or service?

  Four contingency theories of leadership

As a leader, a person must be adaptable to leading individuals who are different in terms of their personality, motivation, experience

  Price elasticity of demand for business travelers

An airline estimates that the price elasticity of demand for business travelers (who travel on weekdays) is -2, while the price elasticity of demand for vacation travelers (who travel on weekends) is -5. If the airline price discriminates (and cos..

  What is e-commerce and fundamentals

Define in your words what is e-commerce and its fundamentals. Explain what B2B and B2C business models consist of.

  What were the major challenges at abb

What were the major challenges at ABB? Which key people-related challenges did they face? What suggestions would you make to address these challenges?

  Eligibility requirements for medicaid

Examine at least two (2) eligibility requirements for Medicaid. Debate the extent to which you agree with the fairness of these requirements. Provide support for your rationale.

  Principles of set-based concurrent engineering

Review Toyota's Principles of Set-Based Concurrent Engineering and answer the following questions:

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