View Full Version : Problems with Lightbox

02-14-2007, 09:04 PM
1) Script Title: Lightbox image viewer 2.0

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

3) Describe problem: When I click on the thumbnail link, the page initially proceeds as it's supposed to but the image never finishes loading. My code is enclosed. I'm bamboozled by it!

Thanks for your help in advance!!

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<!-- version 1.0 - released Nov 18, 2006 -->

<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />

<meta name="generator" content="Jonas John (www.jonasjohn.de)" />
<meta name="description" content="put a good description in here" />
<meta name="keywords" content="and, insert, some, good, keywords" />

<!-- default stylesheet -->
<link rel="stylesheet" type="text/css" href="css/flowertree.css" media="screen, tv, projection" title="Default" />

<!-- print stylesheet (and print preview) -->
<link rel="stylesheet" type="text/css" href="css/print.css" media="print" />
<link rel="alternative stylesheet" type="text/css" href="css/print.css" media="screen" title="Print Preview" />

<!-- Navigational metadata (an accessibility feature - use opera to preview) -->
<link rel="top" href="index.html" title="Homepage" />
<link rel="up" href="index.html" title="Up" />
<link rel="first" href="index.html" title="First page" />
<link rel="previous" href="index.html" title="Previous page" />
<link rel="next" href="index.html" title="Next page" />
<link rel="last" href="index.html" title="Last page" />
<link rel="toc" href="index.html" title="Table of contents" />
<link rel="index" href="index.html" title="Site map" />

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


<body id="your-site-id">

<div id="logo" class="page">
<a href="index.html" title="Return home"><span id="logo_black">Home</span></a>

<div id="contentbox" class="page">

<div id="padding">

<div id="innerpage">

<div id="content">

<!-- replace the texts trough your own one: -->

<h1>welcome !</h1>

Hello, this is my third open source webdesign !
I call it <i>flowertree</i> because of the picture I used. It is
100% compliant with <a href="http://validator.w3.org/check/referer">XHTML 1.0</a>
Strict and does not contain any tables. I also tried to use relative metrics
everywhere, so the layout should be very flexible (scaling, resizing, font sizes, etc.).
<br />

<p><a href="image-1.jpg" rel="lightbox" title="Able Van"><img src="images/image-1.jpg" style="width: 50px; height: 50px" /></a>

<br />

Feel free to use this template for any purpose you wish
(personal, commercial, ...). If you publish a website that
is based on <i>flowertree</i>, <a href="http://www.oswd.org/user/contact/id/9846">please email me</a> your site's URI -
that would be very nice (because I'm very curious)!
<br />

<b>Some good links:</b><br/>
<a href="http://www.jonasjohn.de/" title="Personal homepage of Jonas John">Jonas John</a> /
<a href="http://www.oswd.org/" title="Open Source Web Design">OSWD.org</a> /
<a href="http://www.photocase.com/" title="license free stock photos">Photocase</a>
<br />

<small id="copyright">
<b>Copyright &copy; 2006 <a href="index.html">Your Name</a>.</b><br />
Webdesign by <a href="http://www.jonasjohn.de/">Jonas John</a>.

<!-- please leave a small credit to the author - thanks :-) ! -->

<br class="clear" />
<br />

<!-- i love clean source code -->

<div id="menu" class="page">
<a href="index.html">home</a> /
<a href="index.html">photos</a> /
<a href="index.html">guestbook</a> /
<a href="index.html">sitemap</a> /
<a href="index.html">contact</a>


02-14-2007, 09:42 PM
Please post a link to the page on your site that contains the problematic script so we can check it out.

This could be caused by the image not being placed in the right directory that you are calling (or not uploaded altogether). If you were to post a link, we would be able to help you further.

02-14-2007, 09:50 PM
I feel like an idiot, I hadn't referenced the image properly!!

Sometimes it would seem the obvious needs pointing out!!

Thanks the testingsite

02-14-2007, 09:58 PM
No problem. Let us know if you need any further help.