PDA

View Full Version : lightbox image problems



Gina new to html
03-28-2011, 02:49 AM
Hi,
I am trying to add a gallery to my webpage. I want that when you click on the image it enlarges with the background black. I downloaded lightbox to achieve this however it still wont work. every time i click the image it opens in the existing page but changes the page to only show the image and nothing else.
Any help I would really appreciate.
Thanks

djr33
03-28-2011, 03:31 AM
Please add a link to your page so that we can try to help.

bluewalrus
03-28-2011, 03:56 AM
A link is the most helpful. What you are describing though sounds like the associated files aren't set up so the links are just functioning as links.

For the files http://www.huddletogether.com/projects/lightbox2/

Then put this in the head (top of your html file before the body).


<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>

Gina new to html
03-28-2011, 04:22 AM
Hi
this is the link but not sure if it will work correctly. I will copy and paste my codes just incase.
C:\Documents and Settings\Gina\Desktop\testing lightbox.html

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>lightbox test</title>

<script type="text/javascript" src="lightbox 2/prototype.js"></script>
<script type="text/javascript" src="lightbox 2/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="lightbox 2/lightbox.js"></script>
<link rel="stylesheet" href="lightbox 2/lightbox.css" type="text/css" media="screen" />

<style type="text/css">
<!--
body {
background-color: #000000;
}
-->
</style></head>

<body>
<a href="file:///C|/Documents and Settings/Gina/My Documents/W.A.S.P/image-1.jpg" rel="lightbox" title="testing"><img src="lightbox 2/images/thumb-1.jpg" /></a>

</body>
</html>

Thank you

Gina new to html
03-29-2011, 10:13 PM
Hi
this is the link but not sure if it will work correctly. I will copy and paste my codes just incase.
C:\Documents and Settings\Gina\Desktop\testing lightbox.html

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>lightbox test</title>

<script type="text/javascript" src="lightbox 2/prototype.js"></script>
<script type="text/javascript" src="lightbox 2/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="lightbox 2/lightbox.js"></script>
<link rel="stylesheet" href="lightbox 2/lightbox.css" type="text/css" media="screen" />

<style type="text/css">
<!--
body {
background-color: #000000;
}
-->
</style></head>

<body>
<a href="file:///C|/Documents and Settings/Gina/My Documents/W.A.S.P/image-1.jpg" rel="lightbox" title="testing"><img src="lightbox 2/images/thumb-1.jpg" /></a>

</body>
</html>

Thank you