Interactivity: Links & JavaScript

    JavaScript "Lightbox" Gallery

    You will create an image gallery (lightbox) by using CSS and JavaScript.

    The code needed is provided to students and is required in order to make this effect work.

    Example

    Add Javascript <head>

  1. Ensure that the "lightbox.css" file is saved in the "css" folder
  2. Add this code in the <head> tag under the code that links the other CSS files:
  3. 
    <link href="css/lightbox.css" rel="stylesheet" type="text/css">
    
    
  4. Ensure that the "lightbox.js" and "lightbox-plus-jquery.min.js" files are saved in the "js" folder
  5. Add this code in the <head> tag:
  6. 
    <!--Javascript-->
    <script src="js/lightbox.js"></script>
    <script src=
    "js/lightbox-plus-jquery.min.js"></script>
    
    

    Adding a link to a website

  7. Insert text in the #footer that includes the resource websites you used for the project research.
  8. To add a link, you may add it directly inside the #footer tag:
  9. 
    <div id="footer">
    Your Name &copy; All Rights Reserved
    <br>
    SOURCES: 
    <a href="http://color-wheel-artist.com/primary-colors.html" target="_blank">color-wheel-artist.com</a>
    <!--Closing Tag for footer--></div>
    
    

    JavaScript

    JavaScript is one of the 3 languages all web developers must learn:

    Dreamweaver Logo

    Special Characters

    Some characters require a different HTML tag called a Symbol Entity Names (i.e. “&” instead of just “&”).

    To learn more Symbol Entity Names, visit: W3Schools