View Full Version : Lightbox question ?

09-02-2009, 01:38 PM
Been playing around with lightbox now the past few hours and Im having a bit of trouble. I did a search on this and even watched tutorials on you tube but to no avail.

When I click on the small image, the large one appears on a new page.
No sign of the lightbox at all.

Just started out with web design last week so Im very new to this.



I get this warning below when I click on the prototype.js tab.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript" src="lightbox2/prototype.js"></script>
<script type="text/javascript" src="lightbox2/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="lightbox2/lightbox.js"></script>
<link rel="stylesheet" href="lightbox2/lightbox.css" type="text/css" media="screen" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>


<a href="../images/ballyhooley_big.jpg"rel="lightbox" title="cian"><img src="../images/ballyhooley_small.jpg" width="167" height="125" /></a>


09-02-2009, 03:38 PM
Your index file should be in the root of the site, not in the lightbox directory.
The link to the three js files and the one CSS file is wrong.

09-02-2009, 06:19 PM
Hey Domedia.
Thanks for the reply. Got it sorted now.
Been driving me nuts all day.

Time for beer I think.:mrgreen:


09-04-2009, 09:53 AM
I have a couple of products with an apostrophe in the title such as "Keiths Great Product". It seems that either the contribuiton code or the Lightbox code doesnt like this. The small product picture is not load at all from product_info.php due to a java script error. These product names do not cause problems with the old code. Any suggestions?

09-04-2009, 05:35 PM
You have to write the HTML character for the apostrophe in all webpages, Lightbox or not. &quote;