Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A javascript lightbox allows us to view full - size images by clicking on image thumbnails. Here's what you'll be building. ( Click on any
A javascript lightbox allows us to view fullsize images by clicking on image thumbnails.
Here's what you'll be building. Click on any of the small images.
Lets create a lightbox gallery using the Luminous Javascript library:
Make a copy of your working index.php file. Call this copy: lightbox.php
Modify lightbox.php to only display your locally stored images.
Remove the links to the photographers Unsplash pages.
Make thumbnail versions of all your images that are pixel wide. Name each thumbnail with thumbnail at the end of the filename.
Example: mountain.jpg becomes mountainthumbnail.jpg
Modify each image such that the thumbnail displayed within a link to the fullsize image. For example:
Add these CDNserved link and script tags to your HTML head element:
Add the following script tag directly above your closing tag:
This step assumes that the CSS selector image a targets all the link tags youve got your images stored within. Modify as required, If you used different HTML from the example.
Check if your gallery looks and acts like the provided example.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started