This is a discussion on "Lightbox 2 Issue" within the JavaScript Forum section. This forum, and the thread "Lightbox 2 Issue are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Lightbox 2 Issue
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] Lightbox 2 Issue
I'm using Lightbox 2 in a new site I'm building and having issues with the Close & Loading gifs.
The index page has 2 images that open up in lightbox and everything works fine. Then on another page ( pages/sound.htm ) the images open up in lightbox, the effect works, but the close & loading gifs do not appear. This is the case in bothe IE & Firefox ( IE shows the red x ) Im not sure where I've gone wrong. Everything seems to be linked up correctly. Here is the site: http://www.freebassaudio.net/index.htm Please reference the Home & Sound pages. Any help would be greatly appreciated, as I cannot seem to figure this out, thanks. -Will Last edited by CloudedVision; Mar 13th, 2008 at 21:06. Reason: Solved! |
|
|
|
|||
|
Re: Lightbox 2 Issue
Moved to JavaScript Forum.
Ed.
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
|
|
||||
|
Re: Lightbox 2 Issue
most likely the page is in a different directory so the link to the image is broken. Try adding a slash in front of the image URL. eg: test/bla.jpg -> /test/bla.jpg
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
|||
|
Re: Lightbox 2 Issue
unfortunately, thats not the problem.
thats whats got me so confused, everything looks to be linked up properly. looks like ill keep re-checking. thx! |
|
||||
|
Re: Lightbox 2 Issue
think you could post a link of the page that works and the page that doesn't?
Edit: Oops, didn't see there already was a link
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
Last edited by CloudedVision; Mar 13th, 2008 at 00:30. |
|
||||
|
Re: Lightbox 2 Issue
instead of having pages/sound.htm, place sound htm in the same directory as your index page, this could work
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
||||
|
Re: Lightbox 2 Issue
The Lightbox graphics are relative to the CSS file. In your case, this is at the root of your site.
However, you're linking to graphics like so;
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
||||
|
Re: Lightbox 2 Issue
This is what i meant, just not in such a detailed way
I have had quite a bit of trouble with lightbox in the past, all to do with links to files
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
|||
|
Re: Lightbox 2 Issue
thanks so much, aso. that worked for the previous and next label gifs, although the close and loading gif still do not work on the pages inside the "pages" folder.
and im not seeing where my closelabel.gif is linked in the css. i only see the link to the prev and next gifs. am i missing something? |
|
||||
|
Re: Lightbox 2 Issue
Ok, it seems in Lightbox 2, they specify the loading and close image locations in lightbox.js, which seems a little odd.
In fact, for how you're using lightbox, you'd be better off with Slimbox. It's much lighter, and only requires a fraction of the mootools framework. But I know that's off topic, it's up to you if you want to change So the reason the loading and close images don't work for your 'page' directory, is because javascript uses the directory relative to the page it's called from (unlike CSS, which is relative to the file itself). So, open lightbox.js and modify fileLoadingImage and fileBottomNavCloseImage to:
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: Lightbox 2 Issue
thanks again, aso186. finally found those links at around 1am! everything works now *breathes a sigh of relief*
ill have to check out slimbox, thanks for the tip. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Variables in ASP with LightBox | LeeNic | Classic ASP | 4 | Mar 18th, 2008 15:12 |
| Very odd lightbox issue | Zonglars | Web Page Design | 6 | Dec 25th, 2007 11:17 |
| Help with Lightbox | tox0tes | Web Page Design | 4 | Sep 6th, 2007 18:05 |
| Flash Nav and Lightbox 2.0 | Maverick25r | Flash & Multimedia Forum | 1 | Jun 25th, 2007 15:04 |
| Lightbox Questions | saltedm8 | JavaScript Forum | 5 | May 21st, 2007 20:39 |