Skip to content

CodeCrew-CodeSchool/week3-day-05-bonus-rgreen32

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Javascript Events Continued

Assignment: Aspen's Adventure Gallery

Example

This assignment involves creating an interactive image gallery page themed around Aspen, a golden retriever. Students will focus on using JavaScript for DOM manipulation to handle dynamic content and user interactions. This gallery features thumbnails which allow users to select and view full-size images from smaller previews.

Instructions:

Part 1: Thumbnail button functionality

  1. When a user clicks the "view" button on a thumbnail preview, make the thumbnail's image appear in the large display window above.

    • Write some javascript for each thumbnail button so that, when clicked, the image in the mainDisplay is changed

      • Use the 'document object' to select the element with an id of "mainDisplayImage" and assign it to a variable called "mainDisplayImageHTML"

      • Access the "src" property on the mainDisplayImageHTML variable and assign the file path of the thumbnail's image to it.


Part 2: Thumbnail button presentation

Preview

  1. Make the view button hidden by default.

  1. When a user hovers the mouse over a thumbnail, make the thumbnail's view button reappear.

    • use either CSS or javascript to achieve this

About

codeschool-winter24-module-2-week3_day_05_bonus-module02_week03_day05 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%