PDA

View Full Version : Lightbox script



jimnkim
01-05-2009, 12:10 AM
1) Script Title:Lightbox JS

2) Script URL (on DD):http://www.dynamicdrive.com/dynamicindex4/lightbox/index.htm

3) Describe problem:This beautiful script works flawlessly on all the pages that we have installed it except one:
[url]http://kimattwooll.com/animals,_birds_and_other_creatures%20EP1.htm
On this page, the enlarged image is directed to a new window and I can't find the bug.

Any pointers would be greatly appreciated.

Many thanks

Jim

Nile
01-05-2009, 12:12 AM
Your link got cut off:
Try this. (http://kimattwooll.com/animals,_birds_and_other_creatures%20EP1.htm)
Firebug gives me this error for the first page:


Error: FP_preloadImgs is not defined
Source File: http://kimattwooll.com/animals,_birds_and_other_creatures%20EP1.htm
Line: 1


Looks like your problem is:



<body background="images/plainbg.jpg" onload="FP_preloadImgs(/*url*/'images/button12.gif', /*url*/'images/button13.gif')">


It looks like the FP_preloadImgs isn't a real function.. Try removing the highlighted. If it is something you needed - add the function so it will work.

jimnkim
01-05-2009, 12:30 AM
Thanks for the fast response, I had just finished deleting that part and reloaded the page and it worked. Confirmation from an expert is very reassuring.

Many thanks

Jim

Nile
01-05-2009, 12:40 AM
Great, glad to see it working! And I'm glad to help you anytime you need it! Your welcome.