Question: You are creating an image gallery using javascript. Create a div that will hold a single large image Create 4 thumbnails below the large image
You are creating an image gallery using javascript.
Create a div that will hold a single large image
Create thumbnails below the large image
when a thumbnail is clicked, using a click event a display a larger version of that image in the div holding the larger image.
Objectives:
create an onclick event from within each image thumbnail element
utilize an external JavaScript page
create a SINGLE function that receives the arguments from the clicked image
use the getElementById method to change the Large Image src property to the property of the clicked image. This needs to be done with the function outlined above.
note: There are other ways to complete this assignment, but in order to receive the points, you must meet the objectives as outlined.
Remember Requirements from Web Dev I apply:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
