View Full Version : Lightbox problem

El Huevo
01-23-2007, 11:18 PM
1) Script Title: Lightbox image viewer

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

3) Describe problem: Ok...I really dont know what I did wrong, I've use this script several times and never with out a problem 'til now.

After beliving that I've done everything correctly (the <a> </a> tag, place the files into the correct folder and using the correct paths) everytime I click on the thumbnail, the large image is viewed in a new window without the Lightbox effect.

So please...tell me what I'm doing wrong.

The URL where the problem is: http://www.nuestrabodaonline.com/monicayramon/misa.htm

It's the only image on that page...

Thanks in advanced,
best regards,

El Huevo

01-24-2007, 07:03 AM
There is some type of onload conflict with the IP Tracker script at the bottom of your page. You can either get rid of that script or add the loading script as shown in red below:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<title>-=M&oacute;nica y Ram&oacute;n=-</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="lightbox/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="lightbox/lightbox.js"></script>
<script type="text/javascript">
if ( typeof window.addEventListener != "undefined" )
window.addEventListener( "load", initLightbox, false );
else if ( typeof window.attachEvent != "undefined" )
window.attachEvent( "onload", initLightbox );
else {
if ( window.onload != null ) {
var oldOnload = window.onload;
window.onload = function ( e ) {
oldOnload( e );
window.onload = initLightbox;
<style type="text/css">

font-weight: bold;
font-siz . . .

El Huevo
01-24-2007, 07:33 PM
Sweet! thanks a lot John, it was driving me crazy that I couldnt find the problem, I really much apretiate your time to help me out.

Thanks again, best regards
El Huevo :)

01-25-2007, 09:34 AM
Does this one break out of <iframes> ?

01-25-2007, 12:13 PM
Does this one break out of <iframes> ?

Nope, in fact it is, or is very much like the lightbox script you had at first that did not break out. There are a great many of these lightbox type scripts around and Lytebox is the first I have seen that actually can beak over (breaking out implies the loss of the iframe so, what you really want is to display over the iframe) an iframe.