Changes using javascript to the html below

Assignment Help Basic Computer Science
Reference no: EM131988980

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: EM131988980

Questions Cloud

What is the time the signal is high for 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?
Examine the stationarity of the winning time series : Build an appropriate model and test whether there is empirical evidence to support the contention that the average winning time for male horses
Compare dsl and cable internet connections : Compare DSL and cable Internet connections based on availability, consistent high speed, reliability, security, and price.
Determine whether you would or would not invest in options : Justify why using options is an effective way to reduce the overall risk in a portfolio. Provide an example for your justification.
Changes using javascript to the html below : 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.
Does charles have any defenses to breach of this contract : Charles was a farmer who farmed 600 acres of land. Charles entered into a hand-shake contract with 4H Grain Company.
Higher level of access on local computers : Users in the Engineering Department need a higher level of access on their local computers than other users do.
How can we translate these parts within a team setting : Recall how understanding cultural differences is more than identifying with diversity. How can we analyze the parts of cultural intelligence?
Prepare financial statements for non-reporting entities : FNSACC404 ASSIGNMENT - PREPARE FINANCIAL STATEMENTS FOR NON-REPORTING ENTITIES. Why does Conrad Computers have to register for GST

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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