Questions tagged [lightbox2]

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

452 questions
2
votes
1 answer

How to fix lightbox image size?

I am using lightbox 2 to show in enlarge of images, some picture size are bigger than to browser window size and difficulty to see, so how to fix the lightbox image box size to default?
Abhishek Nayak
  • 3,732
  • 3
  • 33
  • 64
2
votes
0 answers

How to open a lightbox in the center of viewport in a long iFrame

My whole site has one index page in which are loaded iFrames. I have thumbnails of pictures in a very long iFrame, when using lightbox to display a bigger image of a thumbnail, lightbox opens at the very top of the iFrame. I already have a script in…
2
votes
2 answers

How to theme Lightbox

I need to theme my lightbox. I can see the HTML generated by the JavaScript code in lightbox.js, but I cannot overwrite that file, or I will lose my changes when I update the module. Is there any better way to override a theme output?
Evanss
  • 23,390
  • 94
  • 282
  • 505
2
votes
0 answers

Lightbox not working with dynamic gallery

I'm trying to create a gallery that will update as soon as new pictures are uploaded. I'm trying to use lightbox to display them but it doesn't seem to be working. This is my base.html file
Jarl2.0
  • 205
  • 1
  • 3
  • 8
2
votes
2 answers

Angular lightbox: Can't bind to 'data-lightbox' since it isn't a known property of 'a'

I read Angular. It says if you want to bind a property it should be wrapped with []. So here what I did, But I am getting error. Any idea what am I doing wrong? My requirement is to have the value of data-lightbox is what I am setting/sending from…
SK.
  • 1,390
  • 2
  • 28
  • 59
2
votes
1 answer

Lightbox2: Display other picture if named image is lost

I have a lot galleries displayed with Lightbox2 and it works fine. Now I want to delete the larger version of the pictures, but keep the gallery with the thumbnails for visitors. How can I manage, that lightbox2 displays an alternative image, if the…
BeST
  • 21
  • 1
2
votes
0 answers

lightbox2 in browser fullscreen

Is there a way to get lightbox2 to bind to a div when in fullscreen (browser) rather than the body. I am trying to appendTo the #lightboxOverlay and #lightbox to a specific div but it switches back to the body. function fullScreenControl() { …
2
votes
2 answers

How to trigger event on arbitrary function call using jQuery

I'm wondering if it's possible to use jQuery's bind() to fire a custom event when an arbitrary function is called. Something like, /* when cmsPlugin.func() is called, fire myCustom.func() too */ $.bind( cmsPlugin.func, myCustom.func ); We're using…
Chris Burgess
  • 3,551
  • 3
  • 29
  • 42
2
votes
1 answer

Lightbox2 Stopped Working on Chrome

Using straight-out-of-the-box lightbox2 (no edits, no mods). It has worked faithfully for the past couple of years since it's been in use. Suddenly noticed the other day that the image no longer fades in/out using Chrome. Image just displays on a…
2
votes
0 answers

Ignore bower dependency with bower_concat

I am looking to install "lightbox" via bower and this works fine. I used the "ignoredDependencies" flag with bower to prevent jquery being installed alongside the lightbox as that is taken care of elsewhere. When it comes to bower_concat I amended…
Zakalwe
  • 1,444
  • 3
  • 14
  • 25
2
votes
0 answers

Add progress bar to lightbox2

I was searching a way to add a progress indicator to lightbox2 script. My JS is pretty poor and I need a hint on where to start. I assume I need to rewrite Image class prototype, to add methods like onprogress. This is well described here But when I…
JackHammer
  • 458
  • 1
  • 3
  • 16
2
votes
3 answers

lightbox 2: how to add dynamically images via javascript

I'm having trouble attempting to dynamically add images, since lightbox2 (by lokesh dakar) is initialized after document load by existent html coded images and it doesn't parse the document anymore after the first time. If i try to add new images…
Nereo Costacurta
  • 7,693
  • 4
  • 21
  • 27
2
votes
2 answers

Lightbox 2 not working?

I'm using the latest lightbox 2 distribution. Cannot get it to work for some reason, when I click on the image it just goes straight to the href rather than coming up as it should behave..The javascript works whether or not I use a CDN or the…
bpr
  • 483
  • 1
  • 11
  • 23
2
votes
1 answer

How to link lightbox2 in a table?

On my webpage, I have added a table and converted all into links by using the following code: HTML- Blah Blah JQUERY- $(document).ready(function(){ $('table tr').click(function(){ …
1 2
3
30 31