Make the appropriate changes using javascript

Assignment Help Basic Computer Science
Reference no: EM131991954

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

Questions Cloud

Prepare a presentation about the public health campaign : Create and upload a narrated 10 slide PowerPoint presentation targeted toward a potential funding source for your public health campaign.
Create a high level game design document : ISCG6441—Visual Game Design - Create a high level Game Design Document-expand the details provided in your pitch presentation and your one sheet
Assess failure of the firm accounting information system : Based on the information you researched, assess the failure of the firm's accounting information system to prevent the related fraud / embezzlement.
Compute the EBIT break-even point : You are looking at two alternate capital structures. Compute the EBIT break-even point.
Make the appropriate changes using javascript : 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.
Higher level of access on their local computers : Users in the Engineering Department need a higher level of access on their local computers than other users do.
How would you define an ethical business culture : How would you define an ethical business culture? Use an example from your work history (or something you've read about) to illustrate what constitutes.
Calculate the forward premium on foreign currency : Calculate whether international parity conditions hold between Japan and the United States. Calculate the forward premium on foreign currency
Marketing users must be able to access documents : Marketing users must be able to access documents they save in the Documents folder in their profiles from any computer they sign in to.

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