Active
Project:
Lightbox2
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2011 at 21:52 UTC
Updated:
20 Apr 2011 at 07:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
piotr581 commentedComment #2
Matt-H commentedHow do you distinguish between the two styles of lightboxes? Are you wanting both styles of lightboxes to appear on the same page (which could be a problem). If not - if it is based off of the url - then you will probably need to run jquery to override the values on those certain pages.
Comment #3
Source Perrier commentedMatt:
Thanks for your response. I do (did) want both styles to appear on the same page, and tried to use jQuery to override the values, but was unsuccessful in setting the opacity property.
I have abandoned using two lightbox styles on the same page as a result :)
Cheers!
Comment #4
Matt-H commentedWithin your jQuery, you might try something like this:
What this is doing is saving Lightbox.initialize as Lightbox.origInitialize, then redefining Lightbox.initialize so that the overlay opacity is set to 0 before the real initialize is done.
This is similar to what I talk about in http://drupal.org/node/1086868#comment-4217898 for modifying the template. It uses the same kind of technique of mildly redefining the functions within the Lightbox object.
Comment #5
timd.mackey commentedsubscribe
Comment #6
timd.mackey commentedI don't know what that guy was doing, but this issue should not have been assigned to him.