11548 sujets

JavaScript, DOM et API Web HTML5

Salut à tous.

j'ai un problème avec une lightbox, en local tout fonctionne sans problème, lors que je la mets en ligne elle ne fonctionne plus!
Apres des heures de recherche infructueuse je m'en remets à vous.

Voici les portions de code utilisée :
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>

<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />



<div id="wrapper">
	
		<div class="ligne">
		
			<ul>
				<li><a href="images/low/image1.jpg" rel="lightbox[photo]"><img src="images/small/image1.jpg" width="88" height="50"/></a></li>
				<li><a href="images/low/image2.jpg" rel="lightbox[photo]"><img src="images/small/image2.jpg" width="88" height="50"/></a></li>
				<li><a href="images/low/image3.jpg" rel="lightbox[photo]"><img src="images/small/image3.jpg" width="88" height="50"/></a></li>
				<li><a href="images/low/image4.jpg" rel="lightbox[photo]"><img src="images/small/image4.jpg" width="88" height="50"/></a></li>
                <li><a href="images/low/image5.jpg" rel="lightbox[photo]"><img src="images/small/image5.jpg" width="88" height="50"/></a></li>
			</ul>
		
		</div>


#lightbox{	position: absolute;	left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0;}
#lightbox img{ width: auto; height: auto;}
#lightbox a img{ border: none; }

#outerImageContainer{ position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }
#imageContainer{ padding: 10px; }

#loading{ position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }
#hoverNav{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; }
#imageContainer>#hoverNav{ left: 0;}
#hoverNav a{ outline: none;}

#prevLink, #nextLink{ width: 49%; height: 100%; background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; }
#prevLink { left: 0; float: left;}
#nextLink { right: 0; float: right;}
#prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; }

#imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100%	; }

#imageData{	padding:0 10px; color: #666; }
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }	
#imageData #caption{ font-weight: bold;	}
#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em;	}			
#imageData #bottomNavClose{ width: 66px; float: right;  padding-bottom: 0.7em; outline: none;}	 	

#overlay{ position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; }


body {
background-color: #fefefe;
margin:0;
}

img {border:0
}

#popup {
background-color: #000000;
margin:0;	
}

#back {
	z-index: 0;
	width: 1280px;
	height: 864px;
	top: 0px;
	left: 50%;
	margin-left: -640px; /* moitie de la largeur */
	right: 0px;
	bottom: 0px;
	position:absolute;
	background-image: url(../images/background.jpg);
	background-repeat: no-repeat;
}

#menu {
	z-index: 1;
	width: 196px;
	height: 238px;
	top: 200px;
	left: 180px;
	right: 0px;
	bottom: 0px;
	position: relative;
}

#extraduo {
	z-index: 2;
	top: 236px;
	left: 975px;
	right: 0px;
	bottom: 0px;
	position: relative;
	}

.mnu {
	z-index: 1;
	width: 196px;
	height: 26px;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	position: relative;	
}

.mnu-client {
	z-index: 1;
	width: 196px;
	height: 56px;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	position: relative;	
}

#info {
	z-index: 1;
	width: 273px;
	height: 269px;
	top: 275px;
	left: 140px;
	right: 0px;
	bottom: 0px;
	position: relative;
}

#extraduo {
	z-index: 2;

	}

#wrapper {
top:0px;
width:950px;
position:relative;
margin-top: -290px;
margin-left: 480px;
padding:0px;
font-size:1.2em; /* = 18 pixels */
}

ul {
margin:0px;
padding:0px;
border:none;
}

li {
list-style:none;
display:inline;
margin:0px 11px 0 0px;
padding:0px;
border:none;
}

.ligne{
margin-bottom:11px;
}


voila.

Vous pouvez aller consulté le site http://www.katodix.eu section myphoto

Merci d'avance bien à vous
un grand merci.

on as beau avoir le nez dessus on voie pas de suite l'erreur.

Bien à vous.