Click here to Skip to main content
15,891,902 members

[SOLVED] Lightbox2 and its ilk

#realJSOP asked:

Open original thread
Using FireFox 4.0:

I was playing around with Lightbox2 last night, and I simply can't get it to load the control images (like loading.gif or closelabel.gif), even if they're in the same folder as the javascript. The applicable part of my site hierarchy looks like this:

root
    Lightbox (contains all lightbox js, css, and images with no sub-folders)
    MySubFolder
        masterpage.master (loads the lightbox js)
        Default.apsx (contains images that are be lightboxed)


The lightbox styles and javascript are loaded, and the image comes up as expected, but the frame around the image doesn't have the close image (closelabel.gif) on it. If I hover the mouse in just the right place on the frame, I can click the invisible image, and the window returns to the normal pre-lightboxed view. I played around with it for about two hours yesterday, but could not get the image to show up.

This issue caused me to look for an alternative to Lightbox2. I think I want to try ShadowBox next, but I'm wondering if anyone else has:

0) had the same problem with Lightbox2

1) found anything that's better (and lighter weight)

2) experience with ShadowBox

3) any idea why Lightbox2 refuses to show the window control images

I started with Lightbox2 because it appears to work fine on their demo page with IE8 which is what I have to use at work, but when I got home and actually put it into a web page, I had the problems cited above. I don't think it's because I'm using FF4, because if I remember correctly, their demo page worked fine with it.
Tags: Javascript, ASP.NET

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900