No icon lightbox

I'm having trouble getting the lightbox feature to work on my website. I've tried various solutions like including lightbox.css, lightbox.js, and jquery-1.7.2.js, as well as placing the scripts in different sections of the HTML document. However, despite seeing that the icons are present, the lightbox functionality is not working properly.

<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
    <meta name="Description" content="blablabla" />
    <meta name="Keywords" content="blablabla" />
    <title>blablabla</title>
    <link href="https://fonts.googleapis.com/css?family=Lato:400,700,900&amp;subset=latin-ext" rel="stylesheet">
    <link rel="stylesheet" href="indexStyle.css" type="text/css"/>
    <link href="lightbox.css" rel="stylesheet">
    <script type="text/javascript" src="jquery-1.7.2.js"></script>
    <script type="text/javascript" src="lightbox.js"></script>
    <script type="text/javascript" src="banner.js"></script>

</head>
<body onload="zmienslajd();">
<div class="backgroundContainer">
    <div class="container">
        <div class="upContainer">
            <div class="logo">
                <a href="blablabla"><img src="models/logo.png" alt="Przepraszamy - awaria logo." /></a>
            </div>
            <div class="nav">
                <ol>
                    <li><a href="blablabla2"></a></li>
                    <li><a href="#">Oferta</a></li>
                    <li><a href="blablabla3">Gallery</a></li>
                    <li><a href="blablabla4"></a></li>
                </ol>
            </div>
        </div>
        <div style="clear: both"></div>
        <div id="banner">

        </div>
        <div style="clear: both"></div>
        <div class="midContainer">
            <a href="Models/galeria1.jpg" data-lightbox="roadtrip"><img src="Models/mingaleria1.jpg" alt="Zdjęcie 1"></a>
            <a href="Models/galeria2.jpg" data-lightbox="roadtrip"><img src="models/mingaleria2.jpg" alt="Zdjęcie 2"></a>
            <a href="Models/galeria3.jpg" data-lightbox="roadtrip"><img src="models/mingaleria3.jpg" alt="Zdjęcie 3"></a>
            <a href="Models/galeria4.jpg" data-lightbox="roadtrip"><img src="models/mingaleria4.jpg" alt="Zdjęcie 4"></a>
            <script type="text/javascript" src="lightbox.js"></script>
        </div>
        <div style="clear: both"></div>
        <div class="botContainer">
            Time4Fruit.pl &copy; 2016 by blablabla
        </div>
        <div style="clear: both"></div>
    </div>
</div>
<script type="text/javascript" src="lightbox.js"></script>
</body>
</html>

My css:

/* Preload images */
body:after {
  content: url("images/close.png") url("images/loading.gif") url("images/prev.png") url("images/next.png");
  display: none;
}
body.lb-disable-scrolling {
  overflow: hidden;
}
.lightboxOverlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: black;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
  opacity: 0.8;
  display: none;
}
...
(any additional CSS styles will be preserved)

Answer №1

Issue solved.

<link href="lightbox.css" rel="stylesheet">
was incorrect.
It should be:

<link href="css/lightbox.css" rel="stylesheet" type="text/css"/>

Phew. It's all good now!

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Send the ID of the checkbox to a PHP file using AJAX

Is it possible to generate a network graph by selecting checkboxes? When I choose one or more checkboxes and click the button, I expect to see a network graph with the selected checkboxes. It almost works, but when I select multiple checkboxes, only one ...

Issue with gMarker.key being undefined is causing an error in an angular application that utilizes the Google Maps API. This

I am currently working on an application that involves integrating Google Maps into an Angular app to display coordinates on the map when a user selects a location. However, I am encountering an error when trying to load the app. The HTML seems to be funct ...

Exploration of search box with highlighted fields

Seeking assistance to enhance the highlighting feature after entering a letter in the search box. Here is the current code snippet: <!DOCTYPE html> <html> <head> <script type="text/javascript" src="javascripts/jquery-1.11.0.min.js"&g ...

I am looking to incorporate a scroll feature into my form, as it is being displayed within a modal that is a separate component

Due to the size of my employee form exceeding the screen capacity, I need to incorporate a scroll property into my modal content. The form contains numerous fields that cannot be modified. Could you assist me in resolving the scrolling issue? Thank you! ...

How to delete an item from a dropdown list using Jquery

jQuery(document).ready(function () { $lstAccountType = $('select[id*="account_type"]'); $lstAccountType.change(function () { $(this).remove('option[text="select one"]') }); }); Is there a way to remove the initial option ...

Difficulty organizing form inputs into arrays prior to submitting them through AJAX

I am currently developing a complex multi-step form that involves various sections such as Company, Job Site, Contact, and Product. My goal is to efficiently gather the form data either as an array or object before converting it into a string for transmiss ...

Problem with displaying Django template tag

I am having trouble understanding how Django template tags can be displayed. Currently, I am working with Django 2.0.3 and jQuery 3.3.1 In my template named home.html, I have the following code: //home.html <script> $(".game-menu").click(function ...

Massive HTML Table Containing Rows upon Rows

Currently, I have a server that can provide me with a list of objects in json format, and my goal is to showcase them in a table on the client side. Initially, I thought about dynamically modifying the DOM after receiving data from the server. Building th ...

Having trouble with jQuery dialog popups not appearing as expected? Instead of popping up as intended, do they simply show up on the page

I am having some trouble with a few small divs that are supposed to pop up when a certain event occurs. However, instead of popping up, they are appearing within the content of the page. Does anyone have any insights into why this might be happening? Addi ...

Effects with Cleanup - terminates ongoing API calls during cleanup process

Developing a React album viewing application: The goal is to create a React app that allows users to view albums. The interface should display a list of users on the left side and, upon selecting a user, show a list of albums owned by that user on the righ ...

Exhausting my server's capacity for HTTP requests due to heavy use of an Ajax function

I'm not very knowledgeable about servers and HTTP request limits. I currently have a Linux Deluxe hosting plan on GoDaddy, which is running smoothly. However, I am facing an issue where my website becomes unreachable (ERR_CONNECTION_CLOSED) after runn ...

Check the data from the radio button selection

I am facing an issue with reading the values of radio buttons in a list, all of which have the same id. Despite trying to retrieve the value of each individual radio button, my code only reads the value of the first radio button. <script src="//ajax. ...

Incorporating Tabs with HTML, CSS, and jQuery

After searching for a way to enable tab selection on click within my HTML fragment representing a tabbed interface, I was unable to find a solution. I resorted to manually programming it using JavaScript, which did work, but I feel there must be a more p ...

Displaying varied information based on JSON feedback using AngularJS

I am currently in the process of developing an app using AngularJS and the Ionic framework. The app will display a list of data with various subcategories for each item, depending on the account type. View sample image here The issue I am facing is that ...

Setting up a secure HTTPS server using Node.js and Express.js

Currently in the process of setting up a HTTPS server using Node.js and Express.js. This is what I have so far: const filesystem = require('fs'); const express = require('express'); const server = express(); const http = require(&apos ...

Prevent any http requests until an observable completes its task

I'm currently developing an Angular interceptor where, before sending any non-GET requests, I need to make a GET request to obtain a specific header from the server and then set that header on all subsequent requests. Is there a method for achieving t ...

Using Three.js to extract Vertex Colors based on the z-coordinate of Vectors

Here is a sample: http://jsfiddle.net/c3shonu7/1/ The code demonstrates the creation of a BufferGeometry object by cloning an IcosahedronBufferGeometry's vertices. The goal is to apply a color gradient to the subdivided icosahedron, with lighter shad ...

Can we limit the text in a specific cell to one line on a desktop for a responsive table?

I am facing a challenge with making the second cell in my table have a width of 100% while ensuring that the text stays on one line. While the mobile version is functioning correctly, I am struggling to find a solution for the desktop version as the last ...

Having trouble with Google Maps Places API autocomplete feature; it's not functioning properly

My goal is to integrate the Google Maps Places API with a search box. To test jQuery autocomplete, I managed to make it work using this simple example: function bindAutocomplete() { var locationSearch = $("input#Location"); locationSearch.autocom ...

Having trouble getting the drop down menu to function properly using HTML and CSS

I attempted to implement a drop-down menu using the following codes. However, I am facing some issues as clicking on the drop-down menu does not open the sub-menus as expected. Is there a way for me to resolve this problem? <div id="control-panel& ...