Lightbox 2 is a JQuery-script developed by Lokesh Dhakar used to display images in an overlaying box. It can also be used to make galleries and can be found at www.LokeshDhakar.com/projects/lightbox2
Questions tagged [lightbox2]
452 questions
7
votes
1 answer
Lightbox2 not initiating
Ok so what I thought would take me few minutes to implement has now taken up over an hour of my time and I'm just completely puzzled.
I downloaded lightbox2, followed the instructions; embedding their CSS and JS in the head of my index.html

Cream Whipped Airplane
- 1,305
- 3
- 13
- 31
6
votes
7 answers
Place Lightbox close button on top right area
How can I do this? Mine appears in the bottom right side. I am using Lightbox v2.7.1.

SunT
- 323
- 1
- 2
- 14
6
votes
2 answers
Lightbox not playing nice with mobile device
Lightbox is awesome on the pc.
However, the situation is: I've been getting various complaints from Android and iPhone owners about Lightbox on their mobile devices about how they are unable to zoom on the larger image within lightbox because…

user1736985
- 61
- 1
- 2
5
votes
3 answers
Lightbox overlay not displaying on Chrome but works well on Chrome Canary
I've got some issues on Lightbox Overlay which it displays perfectly on Chrome Canary, Safari, Firefox and IE. Except for Chrome (version 33).
Screenshots:
** Lightbox on any browser except Chrome : http://awesomescreenshot.com/0952i236a2
**…

Shiro
- 273
- 4
- 17
5
votes
1 answer
Facing an issue object required error in IE 8 and light box is not working in IE 8 and IE 7 alone
I am implemented the uploaded images are displayed on the site . For
the image not uploaded correctly means i replace the error-image on
that? When i load the site I am facing the issue error image not
define, and for the lightbox is …
user1418974
4
votes
1 answer
Why is embedded ruby not working in a static page in public folder?
I have a nav button that loads a new page (create.html.erb) through Lightbox 2.
create.html.erb is placed in the public folder.
Everything loads fine but the embedded ruby doesn't work.
…

toandang
- 109
- 1
- 3
- 11
4
votes
7 answers
Javascript and CSS Lightbox that can view PDFs
Has anyone ever found any lightbox type javascript / css code that can display PDFs? I have tried many libraries and none have worked for me. The environment needs to be IE6/IE7 compatible.
I am looking for something similar to this:
Lightbox 2

Jon
- 2,129
- 7
- 23
- 31
4
votes
1 answer
Add custom html to lightbox2
I have a gallery made with lightbox 2 made in a normal matter with thumbnails etc. Now I need to add some HTML via JS into a div of lightbox 2. How do I do that?
First I thought, just do a function and call it with onclick, but lightbox isn't…

xotix
- 494
- 1
- 13
- 41
4
votes
3 answers
Get lightbox 2 working in Angular 2?
I can't get lightbox 2 to work in Angular 2. I set it up as described in the documentation, but I always get the error "Uncaught TypeError: this.$lightbox.css(...).fadeIn is not a function". I can't find any example code getting this working.

Eddie
- 1,228
- 3
- 17
- 31
4
votes
1 answer
Jquery Plugin for viewing files (JPEG, PDF, DOC)
I have different file types such as pdf, jpeg, doc etc. I am trying to show the files without downloading. I was using Lightbox and it worked great for images files. But it doesn't work for PDFs and DOCs.
Is there any plugins to view different file…

Galactic_Warrior
- 73
- 2
- 6
4
votes
3 answers
Lightbox.options is not a function - lightbox plugin
I am using this lightbox plugin,
http://lokeshdhakar.com/projects/lightbox2/
https://github.com/lokesh/lightbox2/
I have items on the page similar to the example:
Image #2

dav
- 8,931
- 15
- 76
- 140
4
votes
3 answers
jquery lightbox save image
I am using lightbox from http://lokeshdhakar.com/projects/lightbox2/.
it did works but the images cannot be saved..when right click it only allow to save the html link... how to enable user to save the displayed image?
html

user4815740
- 311
- 2
- 8
- 17
4
votes
2 answers
AJAX loaded content with lightbox2
I'm using the Lightbox2 script and the content of my page is loaded via an AJAX request.
I don't find any function to attach new images or initialize Lightbox2 after an AJAX request, How can I make that in order to use Lightbox2 for images loaded…

leosw
- 105
- 1
- 2
- 6
4
votes
2 answers
Lightbox Gallery in OpenLayers PopUp
I am currently designing a website that uses openlayers extensively. There are various vector markers placed on the map and when the user clicks a marker a popup appears. Within this popup there is some images that have been set up for lightbox. The…

gimg1
- 1,121
- 10
- 24
3
votes
0 answers
Lightbox2, trouble with horizontal photo and order to display photos
I have a problem with the Lightbox2 made by Lokesh.
https://lokeshdhakar.com/projects/lightbox2/
I am v2.11.3 and the display of horizontal photo is on the top of the screen in mobiles devices. I have try different options but doesn't work.
Another…

Sukafkiana
- 31
- 2