PDA

View Full Version : lightbox2 newbie help



cowgurl
04-18-2006, 05:37 AM
Hi
I looked through the forum, and did not find a fix, I am trying this script out on this test page:
http://nwchristiancowboys.com/lite.html
I cannot get the lightbox effect with my image, it just opens in a new page. I only have 1 image set up until I get a handle on this.
I am missing something, hopefully simple. Any help is greatly appreciated. Thank you in advance for patience with a newbie!
Susan

ddadmin
04-19-2006, 03:44 AM
There's a syntax error in your BODY tag:


<body onload="MM_preloadImages(‘/images/menu_on.gif’)…;initLightbox()">

It should read:


<body onload="MM_preloadImages('/images/menu_on.gif');initLightbox()">

cowgurl
04-19-2006, 05:48 AM
Hi
Thank you for taking the time to reply! I changed the syntax error in the BODY tag, but this did not resolve the issue of image opening in a new page.
Any other suggestions???
Thank you again
Susan

ddadmin
04-20-2006, 12:08 AM
There's still a (different) javascript error on your page, namely:


Error: MM_preloadImages is not defined
Source File: http://nwchristiancowboys.com/lite.html
Line: 1

I'd remove the MM_preloadimages() code from the BODY altogether for now just to see if that does it.

cowgurl
04-20-2006, 12:52 AM
Hi
I removed the MM_preloadimages() code from the BODY, still not resolved.
Thank you for offering this suggestion.
Any other thoughts?
Susan
http://nwchristiancowboys.com/lite.html

cowgurl
04-23-2006, 01:44 AM
Hi
Appreciate the ideas so far, still hoping to get this functioning, where is my error?
http://nwchristiancowboys.com/lite.html
Susan

johnb
04-23-2006, 10:41 PM
Hi Susan

Couple of problems I can see ...

1: The link to your CSS file appear to be incorrect
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

2: The link to your Javascript files also appears to be incorrect
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>

You will need to correct these before it will work
I attempted to load both (CSS & JS) and both came up with URL Errors.

HTH, John

cowgurl
04-24-2006, 03:52 PM
Thank you, John
What a phew, to finally see it work!!!
Susan