The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Small Problem with lightbox
maxmaggot
post Sep 14 2013, 09:48 PM
Post #1


Novice
**

Group: Members
Posts: 23
Joined: 14-September 13
From: Ireland
Member No.: 19,732



I don't think I'm too far wrong with the code I have but the images won't appear only the box with the loading gif. Any suggestions. Here is the code I have:

In head
CODE

<script src="Scripts/jquery-1.10.2.min.js"></script>
<script src="Scripts/lightbox-2.6.min.js"></script>
<link href="Styles/lightbox.css" rel="stylesheet" />



In body
[code]

<div id="apGallery" class="SideBarItem" onclick="clicksound.playclip();">
<a href="Images/Other/image 1.jpg" data-lightbox="image-1"></a>
<a href="Images/Other/image 2.jpg" data-lightbox="debatingireland"></a>
<a href="Images/Other/image 3.jpg" data-lightbox="debatingireland"></a>
<a href="Images/Other/image 4.jpg" data-lightbox="debatingireland"></a>
</div>
[code]

I left the text inside the <a> tag blank as it was appearing on the main screen.


Any ideas? Thanks
Max
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Sep 14 2013, 09:59 PM
Post #2


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



Here's the lightbox I'm using
http://www.lokeshdhakar.com

There's pretty good step by step instructions
http://lokeshdhakar.com/projects/lightbox2/

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Sep 15 2013, 04:25 AM
Post #3


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



Otherwise, post the URL of your page demonstrating the problem.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
maxmaggot
post Sep 15 2013, 01:35 PM
Post #4


Novice
**

Group: Members
Posts: 23
Joined: 14-September 13
From: Ireland
Member No.: 19,732



Thanks for getting back to me.

That is the tutorial I followed.

Here is the URL I am testing it on http://www.pcrepairdirect.com/Aideen/index.html

If you click on the gallery button on the left it activates the lightbox.

Thanks again for your help.

Karl

This post has been edited by maxmaggot: Sep 15 2013, 01:36 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Sep 15 2013, 03:31 PM
Post #5


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



i'm getting a 404 error on all 4 of these images

<a href="Images/Other/image 1.jpg" data-lightbox="image-1"></a>
<a href="Images/Other/image 2.jpg" data-lightbox="debatingireland"></a>
<a href="Images/Other/image 3.jpg" data-lightbox="debatingireland"></a>
<a href="Images/Other/image 4.jpg" data-lightbox="debatingireland"></a>

the path must be wrong, and secondly you might take the space out of the filename.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
maxmaggot
post Sep 15 2013, 03:58 PM
Post #6


Novice
**

Group: Members
Posts: 23
Joined: 14-September 13
From: Ireland
Member No.: 19,732



Thanks for the help. I'll get on to this.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 05:23 AM