PDA

View Full Version : lightbox2 newbie help w/ IE



cowgurl
06-27-2006, 02:49 AM
Script: Lightbox 2
http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm

Page I am having problems:
http://remmepark.com/raynah.html
I am using a Mac and when tested on PC with IE (I think version 6) they say "I am getting an error on the page with the multiple photos after I open one at a time. I only get half the page of pictures back. If I refresh it fixes it. ??"

How do I fix this? In really simple terms, please...
Thank you
Susan

Twey
06-27-2006, 03:15 AM
I'd advise you to abandon v2... it causes the whole tab to simply remain dark for me under FX. I guess that's the reason the original was left up.

jscheuer1
06-27-2006, 04:01 AM
I'd advise you to abandon v2... it causes the whole tab to simply remain dark for me under FX. I guess that's the reason the original was left up.

On the demo page? I'm not seeing that in FX (FF for folks who don't know).

On cowgurl's page I get these:

Error: MM_preloadImages is not defined
Source File: http://remmepark.com/raynah.html
Line: 1

Error: MM_swapImage is not defined
Source File: http://remmepark.com/raynah.html
Line: 1

Error: MM_swapImgRestore is not defined
Source File: http://remmepark.com/raynah.html
Line: 1

So, at the very least, it is a script conflict. However, the lightbox part appears to be working. Another thing, the images themselves are too big. You should use thumbnails for the images on the page, and your larger images should be 700x500 tops.

For troubleshooting purposes, get rid of:


onload="MM_preloadImages('home_red.gif','rembrandt_red.gif','valentino_red.gif','info_red.gif','sales_red.gif','photography_red.gif','events_red.gif')"

from your body tag and all instances of:


onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('info','','info_red.gif',1)"

and similar.

Twey
06-27-2006, 04:04 AM
So? I click the image, and a blank white square appears in the middle of the darkened background. If I click in the background, that square vanishes, but the dark background doesn't, rendering the page unusable until refresh.

Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.0.4) Gecko/20060607 Firefox/1.5.0.4

jscheuer1
06-27-2006, 04:17 AM
On DD's demo page? If so, must be a 'nix thing.

Twey
06-27-2006, 04:23 AM
Yes... very odd.

cowgurl
06-27-2006, 04:54 AM
Thank you, John
I took away the funky links on the left, and this seems to have fixed the issue.
I'll just find a different way to show the links.
As for the images themselves being too big, I agree, but I am building this for friends and this is how they want them, I am still going to argue my point though.
Thanks for your help!!!!!!!!!
Susan

jscheuer1
06-27-2006, 05:00 AM
You're welcome. You might want to check out this link to the author's page:

http://www.huddletogether.com/projects/lightbox2/#support

It talks about the problem you were having but, I suspect part of your problem was also not having the various MM_ image functions available to the page.