Answered step by step
Verified Expert Solution
Link Copied!

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 full-size 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 300 pixel wide. Name each thumbnail with _thumbnail at the end of the filename.
Example: mountain.jpg becomes mountain_thumbnail.jpg.
Modify each image such that the thumbnail displayed within a link to the fullsize image. For example:
Add these CDN-served 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions