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

  Compare and contrast the establishment of the new nation

Compare and contrast the establishment of the new nation-states of Italy and Germany in nineteenth-century Europe;

  Internet for articles on computer crime prosecutions

Search the Internet for articles on computer crime prosecutions. Write a short, 1-page summary of the case including information on the outcome of the case and how digital forensics contributed to either the successful prosecution or acquittal of..

  Sample standard deviation and sample variance

Calculate the sample standard deviation and sample variance for the following frequency distribution of final exam scores in a statistics class.

  Describe a system project that might have three subsystems

Describe a system project that might have three subsystems.

  Creae a concept of an info system

Creae a concept of an info system (make it up). Then create a: 1. Data Flow Diagram and Entity Relationship Diagram 2. Activity Diagram

  Every datagram to its final destination

The IP protocol attempts to route every datagram to its final destination, it is a connectionless, packet switching service. What is meant by "connectionless"?

  Trace the evolution of the security evaluation criteria

Does the rapid development of computer technology put any strain on the existing criteria for updates?

  Three learning team collaborative discussion

Write a 350-word description, individually, based on your Week Three Learning Team Collaborative discussion of what you would do with the following request and why:

  Demand curve and marginal revenue curve

Assume that the demand curve and marginal revenue curve are the typical downward-sloping straight lines. The monopoly deadweight loss equals $4,000.

  List 4 stages of the sdlc

The Final Assessment 1. Assume that a list of requirements for a new system has been put together. List 4 stages of the SDLC where those requirements are used and explain how the list of requirements would be used during each stage. 2. Choose four st..

  Write the corresponding assembly code

The following C code shows an implementation of a routine to compute the factorial of its argument, written n!, with a do-while loop.

  Several senior investigators from the state crime

several senior investigators from the state crime lab request that AB Investigative Services (ABIS) prepare a standard operations procedure document concerning the general processing of computer evidence.

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