[résolu] Problème avec kompozer et lightbox 2

Le premier forum francophone sur l'éditeur de pages Web multiplateforme (Linux, Mac OS X, Windows) qui monte… KompoZer, héritier de Nvu, permet de créer vos pages Web graphiquement (wysiwyg) sans aucune connaissance du langage HTML.

Modérateur : chinon37

Répondre
xfterrible45

[résolu] Problème avec kompozer et lightbox 2

Message par xfterrible45 »

Bonjour, suis un novice , et j'ai réalisé un site web avec kompozer, extra au passage, mais depuis 15 jours je suis complètement bloqué.

J'ai réalisé le fond de mon site et dorénavant je voudrais passé au remplissage, mais voilà lors de la mise en place de ma première image, la fonction lightbox ne fonctionne pas ou pas correctement, j'ai beau cherché dans tous les sens je ne vois ce qui bloque. J'ai réussi à le faire fonctionner, mais la procédure me parait fastidieuse, il suffit de refaire une page compléte et la par miracle cela fonctionne. problème c'est que j'ai déja tout réalisé, je me vois mal recommencer les 3/4 du site.

Si quelqu'un pouvait me dire quel est l'erreur que j'ai commise ca me serait d'un grand secours.

Par avance MERCI

Voici le lien du site (en construction) et un extrait du fichier, il s'agit d'une page du site => " Bricolage " => " Bain fluidisé ".

http://la.peche.ma.passion.free.fr/

le fichier:

Code : Tout sélectionner

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <link rel="stylesheet" href="css/lightbox.css"
 type="text/css" media="screen">
  <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>
  <title>BainFluidise</title>
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
  <meta name="xfterrible" content="HAPedit 3.1">
  <style type="text/css">
html, body {
margin: 0;
padding: 0;
}
body {
font-family: arial,sans-serif;
font-style: normal;
font-variant: normal;
font-weight: normal;
font-size: 76%;
line-height: normal;
font-size-adjust: none;
font-stretch: normal;
text-align: center;
}
p {
margin: 0 10px 10px;
}
a {
padding: 10px;
display: block;
color: #981793;
}
.titrechapitre {
color: #66cccc;
font-family: Balloon;
text-align: left;
padding-left: 100px;
padding-top: 5px;
padding-bottom: 5px;
font-weight: inherit;
font-style: normal;
text-decoration: underline;
font-size: 1.4em;
line-height: 1.2em;
}
.soustitrechapitre {
text-align: left;
font-style: normal;
color: #232323;
font-family: Script-R691;
padding-bottom: 0px;
padding-left: 30px;
line-height: 1.2em;
font-size: 1.3em;
font-weight: normal;
text-decoration: none;
}
.menuprincipal {
border: 4px double black;
padding: 0px 0px 3px;
text-align: center;
text-decoration: none;
list-style-type: none;
margin-left: 0px;
margin-right: 0px;
visibility: visible;
display: block;
height: 30px;
margin-top: 0px;
position: static;
width: 792px;
}
.menuprincipal a {
border: 2px solid black;
margin: 8px 0px 0px 8px;
padding: 0px 0px 2px;
background-color: transparent;
bottom: 0px;
clear: none;
list-style-type: none;
top: 0px;
color: black;
text-decoration: none;
display: block;
float: left;
height: 14px;
right: 0px;
position: static;
line-height: 1em;
font-weight: bold;
text-align: center;
left: 0px;
font-family: Times New Roman;
font-size: 1.2em;
width: 144px;
}
.menuprincipal a:hover {
border-style: solid;
border-color: black;
border-width: 2px 2px 1px 1px;
list-style-type: none;
background-color: #cccccc;
display: block;
width: 144px;
}
.menuprincipal a:active {
border-color: black;
border-width: 1px 1px 2px 2px;
list-style-type: none;
display: block;
background-color: white;
width: 144px;
}
div#header h1 {
margin: 10pt 0 0;
padding: 0px 0px 0px 10px;
background-color: transparent;
background-repeat: no-repeat;
background-position: left center;
height: 100px;
bottom: 0px;
line-height: 0;
color: black;
background-image: url(../images/Image%20banniere/Banniere%20du%20forum.jpg);
}
div#container {
text-align: left;
padding-bottom: 0px;
margin-bottom: 0px;
bottom: 0px;
top: 0px;
padding-top: 0px;
margin-top: 0px;
}
div#content p {
line-height: 1.4;
color: white;
top: 0px;
padding-top: 0px;
margin-top: 0px;
}
div#navigation {
text-align: center;
background-color: transparent;
background-position: center center;
font-weight: bold;
text-transform: capitalize;
text-decoration: none;
font-size: 1em;
color: #cc9933;
font-family: Monotype Corsiva;
padding-top: 0px;
margin-top: 0px;
margin-bottom: 2px;
background-repeat: repeat;
background-image: url(../images/Image%20Fond%20menu.JPG);
}
div#extra {
border-color: black;
border-width: 0px;
margin: 0px;
background-color: transparent;
background-repeat: no-repeat;
position: static;
padding-bottom: 0px;
top: 0px;
padding-top: 0px;
max-height: 120px;
width: 0px;
padding-right: 0px;
height: 70px;
background-position: center center;
background-image: url(../images/Image%20Bas%20de%20Page/image%20bas%20de%20page%20.jpg);
}
div#footer {
background: #333333 none repeat scroll 0% 50%;
top: 0px;
padding-bottom: 2px;
margin-bottom: 0px;
color: white;
padding-top: 2px;
margin-top: 2px;
}
div#footer p {
margin: 0;
padding: 5px 10px;
font-weight: normal;
text-decoration: none;
font-style: normal;
font-family: Arial;
font-size: 0.9em;
top: 0px;
}
div#container {
margin: 0 auto;
width: 800px;
background-color: transparent;
bottom: 0px;
padding-bottom: 0px;
padding-top: 0px;
top: 0px;
}
div#content {
float: right;
width: 560px;
color: white;
background-color: #515151;
font-size: 1em;
line-height: 1em;
font-weight: normal;
font-family: Times New Roman;
top: 0px;
padding-top: 0px;
margin-top: 0px;
margin-bottom: 2px;
}
div#navigation {
float: left;
text-align: center;
text-decoration: none;
width: 240px;
height: 400px;
max-height: 400px;
}
div#extra {
clear: both;
width: 800px;
margin-top: 0px;
padding-right: 0px;
padding-bottom: 30px;
padding-top: 40px;
margin-bottom: 0px;
}
.ImgDroiteVerticale {
border: 4px ridge black;
margin: 5px 15px 15px;
float: right;
position: static;
width: 150px;
max-width: 150px;
height: 200px;
max-height: 200px;
display: block;
font-size: 0.6em;
line-height: 1em;
color: black;
font-family: times new roman;
}
.ImgGaucheVerticale {
border: 4px ridge black;
margin: 5px 10px 15px -5px;
float: left;
padding-top: 0px;
width: 150px;
max-width: 150px;
height: 200px;
max-height: 200px;
position: static;
visibility: visible;
font-family: times new roman;
font-size: 0.6em;
line-height: 1em;
color: black;
display: block;
}
.cadreOcreVerticaleGaucheBas {
font-family: arial;
color: black;
font-weight: normal;
font-style: normal;
text-decoration: none;
visibility: visible;
top: 0px;
padding-bottom: 0px;
padding-left: 4px;
font-size: 1.2em;
padding-top: 166px;
}
.cadreOcreVerticaleDroiteHaut {
color: black;
padding-bottom: 0px;
top: 0px;
margin-top: 0px;
text-decoration: none;
font-style: normal;
visibility: visible;
font-family: Arial;
font-weight: normal;
font-size: 1.2em;
padding-top: 4px;
padding-left: 74px;
}
.ImgDroiteHorizontal {
border: 4px ridge black;
margin: 5px 15px 15px;
float: right;
position: static;
width: 200px;
max-width: 200px;
height: 150px;
max-height: 150px;
display: block;
font-family: times new roman;
line-height: 1em;
font-size: 0.6em;
color: black;
}
.ImgGaucheHorizontal {
border: 4px ridge black;
margin: 5px 10px 15px -5px;
float: left;
position: static;
width: 200px;
max-width: 200px;
height: 150px;
max-height: 150px;
color: black;
font-family: Times New Roman;
line-height: 1em;
padding-top: 0px;
padding-left: 0px;
left: 0px;
right: 0px;
text-align: right;
font-size: 0.6em;
display: block;
}
.cadreOcreHorizontalDroiteHaut {
font-family: arial;
text-decoration: none;
font-weight: normal;
font-style: normal;
color: black;
padding-top: 4px;
margin-top: 0px;
font-size: 1.2em;
padding-left: 124px;
}
.cadreOcreHorizontalGaucheBas {
font-family: Arial;
color: black;
text-decoration: none;
font-weight: normal;
font-style: normal;
font-size: 1.2em;
padding-top: 128px;
padding-left: 4px;
}
  </style>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <style type="text/css">
.menu {
list-style-type: none;
padding-left: 0;
margin-left: 0;
}
.menu a {
border-style: solid;
border-color: black;
border-width: 1px 3px 3px 1px;
display: block;
text-align: center;
text-decoration: none;
bottom: 0px;
right: 0px;
padding-bottom: 3px;
padding-left: 0px;
clear: both;
background-color: transparent;
margin-top: 3px;
padding-top: 4px;
top: 3px;
position: relative;
font-family: Script-R691;
font-size: 1.3em;
line-height: 1.4em;
font-weight: normal;
font-style: normal;
color: white;
left: 22px;
width: 186px;
}
.menu a:hover {
text-align: center;
background-color: #999999;
color: white;
}
.menu a:active {
border-style: solid;
border-color: black;
border-width: 3px 1px 1px 3px;
text-align: center;
background-color: white;
color: black;
}
  </style>
  <meta name="xfterrible"
 content="HTML Tidy for Windows (vers 18 June 2009), ">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <style type="text/css">
#menu ul {
margin: 0px;
padding: 0px;
text-align: center;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
}
#menu li {
border: 3px groove #33ccff;
margin: 0px -100px 0px 142px;
padding: 0px 0px 20px;
list-style-type: none;
float: left;
position: static;
clear: none;
left: 0px;
text-align: center;
text-decoration: none;
font-weight: normal;
font-family: Balloon;
font-style: normal;
font-size: 1.1em;
color: black;
background-color: transparent;
top: 0px;
width: 110px;
right: 0px;
bottom: 0px;
line-height: 0.4em;
height: 6px;
}
#menu a:visited {
font-weight: bold;
text-align: center;
color: black;
background-color: transparent;
}
#menu a {
font-weight: bold;
text-decoration: none;
display: block;
text-align: center;
color: black;
background-color: transparent;
height: 20px;
}
#menu a:hover {
text-align: center;
color: white;
background-color: #999999;
height: 6px;
}
  </style>
  <meta content="Xavier alias Terrible45" name="author">
</head>
<body
 style="color: rgb(0, 0, 0); background-color: rgb(182, 182, 182); background-image: url(../images/Image%20de%20fond%20ecran.jpg);"
 alink="#000099" link="#000099" vlink="#990099">
<div id="container">
<div id="header">
<h1 style="height: 150px; width: 800px;"></h1>
</div>
<div class="menuprincipal" style="" ="">
<a style="" target="_self" href="../index.html">Accueil&nbsp;</a>
<a target="_self" href="MesBricolagesIntro.html">Mes
Bricolages</a>
<a target="_self"
 href="../MesReportages/MesReportagesIntro.html">Mes
Reportages</a><a target="_self"
 href="../MesPhotos/MesPhotosIntro.html">Mes
Photos</a><a target="_self"
 href="../MesL.S.HomeMade/MesL.S.HomeMadeIntro.html">Mes
L.S.Home Made</a></div>
<div id="wrapper">
<div style="" id="content">
<div class="titrechapitre"><br>
- A - les produits -<br>
</div>
<div class="soustitrechapitre"><br>
<big>Donc pour la r&eacute;alisation d'un bain
fluidis&eacute; il faut :<br>
<br>
&nbsp;&nbsp;&nbsp; - Tube PMMA Diam. 60<br>
&nbsp;&nbsp;&nbsp; - Colle sp&eacute;cifique PMMA ou
Cyanoacrylate <br>
&nbsp;&nbsp;&nbsp; - Contre plaqu&eacute; de 22
&eacute;p.<br>
&nbsp;&nbsp;&nbsp; - 1 joint torique de diam.60 ou +<br>
&nbsp;&nbsp;&nbsp; - 1 Pompe d'aquarium + accessoires<br>
&nbsp;&nbsp;&nbsp; - &nbsp;filtre &agrave; pollen
de 60 &micro; <br>
<br>
<br>
</big>&nbsp;J'ai dans un premier temps, du chercher le
produit qui allait me faire
la construction de mes flacons. Pour cela j'ai utilis&eacute; un
tube de PMMA que j'ai d&eacute;coup&eacute; en
troncon&nbsp; de 2 tailles diff&eacute;rentes:<br>
<br>
<a
 href="file:///E:/Mon%20Site%20Web%20de%20p%EAche/MesBricolages/ImagesgrandesBricolages/BainFluidise/Bain%20Fluidis%E9%20008.jpg"
 rel="lightbox" title="bain fluidis&eacute;"><img
 style="border: 0px solid ; width: 150px; height: 200px;"
 alt="boite"
 src="file:///E:/Mon%20Site%20Web%20de%20p%EAche/MesBricolages/ImagesminiaturesBricolages/BainFluidise/Bain%20Fluidis%E9%20008.jpg"></a><br>
<big><br>
</big></div>
</div>
</div>
<div id="navigation"><br>
<big style="color: rgb(102, 102, 102);"><big><big><span
 style="text-decoration: underline; font-weight: bold;">Mon
bain fluidis&eacute;</span></big></big></big><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
<div id="extra">
&nbsp;&nbsp;&nbsp; &nbsp; <br>
<br>
<ul id="menu" style="">
  <li> <a href="../LIENS.html" style=""
 target="_blank">Liens
Utiles</a></li>
  <li> <a target="_blank" style=""
 href="http://www.i-services.net/membres/combox/combox.php?uid=151954&sid=98158&id=3514&iframe=non">ME
CONTACTER &nbsp; &nbsp;&nbsp;</a></li>
  <li><a target="_blank"
 href="http://www.i-services.net/membres/livredor/livredor.php?uid=151954&sid=98158"
 style="color: yellow;">&nbsp;Livre
d'Or</a></li>
</ul>
<p><strong></strong></p>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; <strong></strong></div>
<div id="footer">
<p style="text-align: right;">Site
R&eacute;alis&eacute; par&nbsp;Xavier alias Terrible45
</p>
</div>
</div>
</body>
</html>
[modo]Mise en forme du code pour une meilleure lisibilité[/modo]
Ymai
Tyrannosaurus Rex
Messages : 4220
Inscription : 12 mars 2005, 11:36

Re: Problème avec kompozer et lightbox 2

Message par Ymai »

Bonjour
Le site est down, pour l'instant... :?
Je ne sais pas si le souci est là, mais ...
La seule image ayant l'attribut rel="lightbox" est référencée comme étant sur le disque dur
<a href="file:///E:/Mon%20Site%20Web%20de%20p%EAche/MesBricolages/ImagesgrandesBricolages/BainFluidise/Bain%20Fluidis%E9%20008.jpg"
rel="lightbox" title="bain fluidis&eacute;">
Un bon coup de nettoyeur de balises ne peut faire de tort.
ymai
« Un enfant de cinq ans comprendrait cela ! Allez me chercher un enfant de cinq ans ! »
Groucho Marx.
terrible45
Arias
Messages : 7
Inscription : 24 oct. 2009, 14:40

Re: Problème avec kompozer et lightbox 2

Message par terrible45 »

Concernant le site je suis en cours de ré actualisation, il devrait être dispo d'içi 10 mn, la page de chez ne me l'actualisait pas donc je suis entrain de tout recharger, désolé...

Mais non rien a voir, car dans l'aperçu du navigateur avec Kompozer cela ne fonctionne pas, l'image s'agrandit (normal lien vers sa grande sœur), mais en haut à gauche de la page alors que normalement se devrait être au milieu.

Le souci c'est que je l'ai vu fonctionner mais pour cela il faut faire copier une page " en code source " puis la coller dans un nouvel feuille et ensuite de ré installer tous les liens et photos de fond... Donc hyper long au vu du travail déjà effectué. Si pas d'autre solutions je ferais celle là mais je pense que j'ai du faire une petite boulette quelque part, mais je vois pas ou ...

le site est ok, mais bizarre ma photo de mon dossier " Mes bricolages" => "Mon bain fluidisé" ne s'affiche pas ni sous internet explorer et mozilla, alors que sous kompozer dans la fenêtre navigateur elle s'affiche. Suis un peu perdu ...
Ymai
Tyrannosaurus Rex
Messages : 4220
Inscription : 12 mars 2005, 11:36

Re: Problème avec kompozer et lightbox 2

Message par Ymai »

Re-
terrible45 a écrit :le site est ok, mais bizarre ma photo de mon dossier " Mes bricolages" => "Mon bain fluidisé" ne s'affiche pas ni sous internet explorer et mozilla, alors que sous kompozer dans la fenêtre navigateur elle s'affiche. Suis un peu perdu ...
C'est normal, puisque l'image n'est pas sur l'Internet mais sur le disque dur.
Il faut corriger la référence
<a href="file:///E:/Mon%20Site%20Web%20de%20p%EAche/MesBricolages/ImagesgrandesBricolages/BainFluidise/Bain%20Fluidis%E9%20008.jpg"
rel="lightbox" title="bain fluidis&eacute;">
Autre difficulté, qui est sans doute liée au fait que l'effet "lightbox" ne fonctionne pas: la librairie
lightbox.js
est déclarée comme se trouvant dans le répertoire js qui serait un sous-répertoire du répertoire courant. Ce qui n'est pas le cas.
Il faut donc revoir la déclaration
<script type="text/javascript" src="js/lightbox.js"></script>
et la faire pointer vers le vrai répertoire contenant lightbox.js
Idem pour les autres librairies js
ymai
« Un enfant de cinq ans comprendrait cela ! Allez me chercher un enfant de cinq ans ! »
Groucho Marx.
Invité

Re: Problème avec kompozer et lightbox 2

Message par Invité »

Ymai a écrit :Re-
terrible45 a écrit :le site est ok, mais bizarre ma photo de mon dossier " Mes bricolages" => "Mon bain fluidisé" ne s'affiche pas ni sous internet explorer et mozilla, alors que sous kompozer dans la fenêtre navigateur elle s'affiche. Suis un peu perdu ...
C'est normal, puisque l'image n'est pas sur l'Internet mais sur le disque dur.
Il faut corriger la référence
On va y aller point par point car sa déconne à plein tube, je dois avoir quelque chose qui fait bugger.

Voilà lorsque je met cette série de photos (qui sont sur le web) sur ma page le code source de l'URL fait que l'image ne s'affiche pas, alors quand la mettant en adresse vers "E" c'est ok bizzare car lorsque je prends une autre photo de ce même repertoire mais qui traite sur un autre sujet je peux visualiser ma photo avec l'adresse URL. Pourquoi dans un cas l'adresse URL ne fonctionne pas avec une photo et marche avec l'autre ??

Mes photos sont dans le même fichier sur mon PC et sont donc toutes les 2 visibles sur ma page gestions des sites dans Kompozer.

Encore plus fort je prends ces 2 photos que je mets dans une feuille vierge de Kompozer 1 seul des 2 photos fonctionne soit avec l'adresse URL ou l'adresse relative de mon PC, l'autre toujours la même "mon bain" ne vaut pas fonctionner, et pourtant j'ai effacer l'ancienne et j'en recrée une nouvelle image bain !!!

Je deviens fou...
terrible45
Arias
Messages : 7
Inscription : 24 oct. 2009, 14:40

Re: Problème avec kompozer et lightbox 2

Message par terrible45 »

Par avance Mea culpa pour le post çi dessus fait en tant qu'invité j'ai pas fait attention que je ne m'étais pas connecté. Mille excuses.

Voilà j'ai fait un essai et ma lightbox fonctionne correctement, mais chemins sont bon...

La preuve cliquez sur "je fais un essai de lightbox" => http://la.peche.ma.passion.free.fr/MesB ... idise.html

La page à été réalisé sur une feuille vierge dans Kompozer en collant les fichiers nécessaires pour la lightbox et une nouvelle photo, celle dont je parlais dans mon post précédent et qui fonctionne.

Code source de cette page:

Code : Tout sélectionner

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <link rel="stylesheet" href="css/lightbox.css"
 type="text/css" media="screen">
  <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>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>essai</title>
</head>
<body>
&nbsp;<a href="images/Zoom/BATEAU%20AMORCEUR%20%281%29.jpg"
 rel="lightbox" title="ESSAI"><img
 style="border: 0px solid ; width: 200px; height: 150px;"
 src="images/Miniatures/BATEAU%20AMORCEUR%20%281%29.jpg"
 alt="BATEAU%20AMORCEUR%20(1).jpg"></a>
</body>
</html>
Par contre dès que je veux reproduire la même chose dans les pages que j'ai crée, impossible de faire fonctionner Lightbox ??? je présume que j'ai du parametrer quelque chose dans mes CSS qui fais que cela bloque ???

La preuve => http://la.peche.ma.passion.free.fr/MesB ... rceur.html

Code source:

Code : Tout sélectionner

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <link rel="stylesheet" href="css/lightbox.css"
 type="text/css" media="screen">
  <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>
  <title>BateauAmorceur</title>
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
  <meta name="xfterrible" content="HAPedit 3.1">
  <style type="text/css">
html, body {
margin: 0;
padding: 0;
}
body {
font-family: arial,sans-serif;
font-style: normal;
font-variant: normal;
font-weight: normal;
font-size: 76%;
line-height: normal;
font-size-adjust: none;
font-stretch: normal;
text-align: center;
}
p {
margin: 0 10px 10px;
}
a {
padding: 10px;
display: block;
color: #981793;
}
.titrechapitre {
color: #66cccc;
font-family: Balloon;
text-align: left;
padding-left: 100px;
padding-top: 5px;
padding-bottom: 5px;
font-weight: inherit;
font-style: normal;
text-decoration: underline;
font-size: 1.4em;
line-height: 1.2em;
}
.soustitrechapitre {
text-align: left;
font-style: normal;
color: #232323;
font-family: Script-R691;
padding-bottom: 0px;
padding-left: 30px;
line-height: 1.2em;
font-size: 1.3em;
font-weight: normal;
text-decoration: none;
}
.menuprincipal {
border: 4px double black;
padding: 0px 0px 3px;
text-align: center;
text-decoration: none;
list-style-type: none;
margin-left: 0px;
margin-right: 0px;
visibility: visible;
display: block;
height: 30px;
margin-top: 0px;
position: static;
width: 792px;
}
.menuprincipal a {
border: 2px solid black;
margin: 8px 0px 0px 8px;
padding: 0px 0px 2px;
background-color: transparent;
bottom: 0px;
clear: none;
list-style-type: none;
top: 0px;
color: black;
text-decoration: none;
display: block;
float: left;
height: 14px;
right: 0px;
position: static;
line-height: 1em;
font-weight: bold;
text-align: center;
left: 0px;
font-family: Times New Roman;
font-size: 1.2em;
width: 144px;
}
.menuprincipal a:hover {
border-style: solid;
border-color: black;
border-width: 2px 2px 1px 1px;
list-style-type: none;
background-color: #cccccc;
display: block;
width: 144px;
}
.menuprincipal a:active {
border-color: black;
border-width: 1px 1px 2px 2px;
list-style-type: none;
display: block;
background-color: white;
width: 144px;
}
div#header h1 {
margin: 10pt 0 0;
padding: 0px 0px 0px 10px;
background-color: transparent;
background-repeat: no-repeat;
background-position: left center;
height: 100px;
bottom: 0px;
line-height: 0;
color: black;
background-image: url(../images/Image%20banniere/Banniere%20du%20forum.jpg);
}
div#container {
text-align: left;
padding-bottom: 0px;
margin-bottom: 0px;
bottom: 0px;
top: 0px;
padding-top: 0px;
margin-top: 0px;
}
div#content p {
line-height: 1.4;
color: white;
top: 0px;
padding-top: 0px;
margin-top: 0px;
}
div#navigation {
text-align: center;
background-color: transparent;
background-position: center center;
font-weight: bold;
text-transform: capitalize;
text-decoration: none;
font-size: 1em;
color: #cc9933;
font-family: Monotype Corsiva;
padding-top: 0px;
margin-top: 0px;
margin-bottom: 2px;
background-repeat: repeat;
background-image: url(../images/Image%20Fond%20menu.JPG);
}
div#extra {
border-color: black;
border-width: 0px;
margin: 0px;
background-color: transparent;
background-repeat: no-repeat;
position: static;
padding-bottom: 0px;
top: 0px;
padding-top: 0px;
max-height: 120px;
width: 0px;
padding-right: 0px;
height: 70px;
background-position: center center;
background-image: url(../images/Image%20Bas%20de%20Page/image%20bas%20de%20page%20.jpg);
}
div#footer {
background: #333333 none repeat scroll 0% 50%;
top: 0px;
padding-bottom: 2px;
margin-bottom: 0px;
color: white;
padding-top: 2px;
margin-top: 2px;
}
div#footer p {
margin: 0;
padding: 5px 10px;
font-weight: normal;
text-decoration: none;
font-style: normal;
font-family: Arial;
font-size: 0.9em;
top: 0px;
}
div#container {
margin: 0 auto;
width: 800px;
background-color: transparent;
bottom: 0px;
padding-bottom: 0px;
padding-top: 0px;
top: 0px;
}
div#content {
float: right;
width: 560px;
color: white;
background-color: #515151;
font-size: 1em;
line-height: 1em;
font-weight: normal;
font-family: Times New Roman;
top: 0px;
padding-top: 0px;
margin-top: 0px;
margin-bottom: 2px;
}
div#navigation {
float: left;
text-align: center;
text-decoration: none;
width: 240px;
height: 400px;
max-height: 400px;
}
div#extra {
clear: both;
width: 800px;
margin-top: 0px;
padding-right: 0px;
padding-bottom: 30px;
padding-top: 40px;
margin-bottom: 0px;
}
.ImgDroiteVerticale {
border: 4px ridge black;
margin: 5px 15px 15px;
float: right;
position: static;
width: 150px;
max-width: 150px;
height: 200px;
max-height: 200px;
display: block;
font-size: 0.6em;
line-height: 1em;
color: black;
font-family: times new roman;
}
.ImgGaucheVerticale {
border: 4px ridge black;
margin: 5px 10px 15px -5px;
float: left;
padding-top: 0px;
width: 150px;
max-width: 150px;
height: 200px;
max-height: 200px;
position: static;
visibility: visible;
font-family: times new roman;
font-size: 0.6em;
line-height: 1em;
color: black;
display: block;
}
.cadreOcreVerticaleGaucheBas {
font-family: arial;
color: black;
font-weight: normal;
font-style: normal;
text-decoration: none;
visibility: visible;
top: 0px;
padding-bottom: 0px;
padding-left: 4px;
font-size: 1.2em;
padding-top: 166px;
}
.cadreOcreVerticaleDroiteHaut {
color: black;
padding-bottom: 0px;
top: 0px;
margin-top: 0px;
text-decoration: none;
font-style: normal;
visibility: visible;
font-family: Arial;
font-weight: normal;
font-size: 1.2em;
padding-top: 4px;
padding-left: 74px;
}
.ImgDroiteHorizontal {
border: 4px ridge black;
margin: 5px 15px 15px;
float: right;
position: static;
width: 200px;
max-width: 200px;
height: 150px;
max-height: 150px;
display: block;
font-family: times new roman;
line-height: 1em;
font-size: 0.6em;
color: black;
}
.ImgGaucheHorizontal {
border: 4px ridge black;
margin: 5px 10px 15px -5px;
float: left;
position: static;
width: 200px;
max-width: 200px;
height: 150px;
max-height: 150px;
color: black;
font-family: Times New Roman;
line-height: 1em;
padding-top: 0px;
padding-left: 0px;
left: 0px;
right: 0px;
text-align: right;
font-size: 0.6em;
display: block;
}
.cadreOcreHorizontalDroiteHaut {
font-family: arial;
text-decoration: none;
font-weight: normal;
font-style: normal;
color: black;
padding-top: 4px;
margin-top: 0px;
font-size: 1.2em;
padding-left: 124px;
}
.cadreOcreHorizontalGaucheBas {
font-family: Arial;
color: black;
text-decoration: none;
font-weight: normal;
font-style: normal;
font-size: 1.2em;
padding-top: 128px;
padding-left: 4px;
}
  </style>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <style type="text/css">
.menu {
list-style-type: none;
padding-left: 0;
margin-left: 0;
}
.menu a {
border-style: solid;
border-color: black;
border-width: 1px 3px 3px 1px;
display: block;
text-align: center;
text-decoration: none;
bottom: 0px;
right: 0px;
padding-bottom: 3px;
padding-left: 0px;
clear: both;
background-color: transparent;
margin-top: 3px;
padding-top: 4px;
top: 3px;
position: relative;
font-family: Script-R691;
font-size: 1.3em;
line-height: 1.4em;
font-weight: normal;
font-style: normal;
color: white;
left: 22px;
width: 186px;
}
.menu a:hover {
text-align: center;
background-color: #999999;
color: white;
}
.menu a:active {
border-style: solid;
border-color: black;
border-width: 3px 1px 1px 3px;
text-align: center;
background-color: white;
color: black;
}
  </style>
  <meta name="xfterrible"
 content="HTML Tidy for Windows (vers 18 June 2009), ">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <style type="text/css">
#menu ul {
margin: 0px;
padding: 0px;
text-align: center;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
}
#menu li {
border: 3px groove #33ccff;
margin: 0px -100px 0px 142px;
padding: 0px 0px 20px;
list-style-type: none;
float: left;
position: static;
clear: none;
left: 0px;
text-align: center;
text-decoration: none;
font-weight: normal;
font-family: Balloon;
font-style: normal;
font-size: 1.1em;
color: black;
background-color: transparent;
top: 0px;
width: 110px;
right: 0px;
bottom: 0px;
line-height: 0.4em;
height: 6px;
}
#menu a:visited {
font-weight: bold;
text-align: center;
color: black;
background-color: transparent;
}
#menu a {
font-weight: bold;
text-decoration: none;
display: block;
text-align: center;
color: black;
background-color: transparent;
height: 20px;
}
#menu a:hover {
text-align: center;
color: white;
background-color: #999999;
height: 6px;
}
  </style>
  <meta content="Xavier alias Terrible45" name="author">
</head>
<body
 style="color: rgb(0, 0, 0); background-color: rgb(182, 182, 182); background-image: url(../images/Image%20de%20fond%20ecran.jpg);"
 alink="#000099" link="#000099" vlink="#990099">
<div id="container">
<div id="header">
<h1 style="height: 150px; width: 800px;"></h1>
</div>
<div class="menuprincipal" style="" ="">
<a style="" target="_self" href="../index.html">Accueil&nbsp;</a>
<a target="_self" href="MesBricolagesIntro.html">Mes
Bricolages</a>
<a target="_self"
 href="../MesReportages/MesReportagesIntro.html">Mes
Reportages</a><a target="_self"
 href="../MesPhotos/MesPhotosIntro.html">Mes
Photos</a><a target="_self"
 href="../MesL.S.HomeMade/MesL.S.HomeMadeIntro.html">Mes
L.S.Home Made</a></div>
<div id="wrapper">
<div style="" id="content">
<div class="titrechapitre"><br>
-&nbsp; -<br>
</div>
<div class="soustitrechapitre"><br>
<big><br>
</big>essai<big>&nbsp;&nbsp;&nbsp; <a
 href="../images/Zoom/BATEAU%20AMORCEUR%20%281%29.jpg"
 rel="lightbox" title="ESSAI"><img
 style="border: 0px solid ; width: 200px; height: 150px;"
 alt="bateau amorceur 1"
 src="../images/Miniatures/BATEAU%20AMORCEUR%20%281%29.jpg"></a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</big></div>
</div>
</div>
<div id="navigation"><br>
<big style="color: rgb(102, 102, 102);"><big><big><span
 style="text-decoration: underline; font-weight: bold;">Mon
bateau amorceur</span></big></big></big><br>
<ul class="menu">
  <li><a style="" href=""><br>
    </a></li>
  <li><a style="" href=""><br>
    </a></li>
  <li><a href=""><br>
    </a></li>
</ul>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
<div id="extra">
&nbsp;&nbsp;&nbsp; &nbsp; <br>
<br>
<ul id="menu" style="">
  <li> <a href="../LIENS.html" style=""
 target="_blank">Liens
Utiles</a></li>
  <li> <a target="_blank" style=""
 href="http://www.i-services.net/membres/combox/combox.php?uid=151954&sid=98158&id=3514&iframe=non">ME
CONTACTER &nbsp; &nbsp;&nbsp;</a></li>
  <li><a target="_blank"
 href="http://www.i-services.net/membres/livredor/livredor.php?uid=151954&sid=98158"
 style="color: yellow;">&nbsp;Livre
d'Or</a></li>
</ul>
<p><strong></strong></p>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; <strong></strong></div>
<div id="footer">
<p style="text-align: right;">Site
R&eacute;alis&eacute; par&nbsp;Xavier alias Terrible45
</p>
</div>
</div>
</body>
</html>

Je comprend toujours pas pourquoi une série de mes photo ne peut s'ouvrir avec l'adresse URL alors que tout les autres sont OK ???
terrible45
Arias
Messages : 7
Inscription : 24 oct. 2009, 14:40

Re: Problème avec kompozer et lightbox 2

Message par terrible45 »

Y a personnes qui peut m'aider ???

Je tourne en rond car j'essaye de me dépatouiller tout seul mais j'avance pas, je fais du sur place. J'y ai déjà passé des journées dessus et me manque plus que ça pour que mon site prenne effet. Je bloque et je comprends pas d'ou ?? HELP ME :oops:

Pour info suis sous XP SP3 avec Mozilla ....
chinon37
Animal mythique
Messages : 5319
Inscription : 21 mars 2005, 10:17

Re: Problème avec kompozer et lightbox 2

Message par chinon37 »

Bonjour,
Il est difficile de t'aider si tu ne fais pas un minimum d'efforts.
Ymai t'a fait remarqué que ton image pointait vers le disque dur de ton ordi et non vers le serveur de ton hébergeur. Or, je remarque que c'est toujours le cas. Ton image pointe vers ton disque dur E... comme on peut le voir par le code ci-dessous.

Code : Tout sélectionner

<img style="width: 200px; height: 150px;" class="ImgGaucheHorizontal" alt="1" src="file:///E:/Mon%20Site%20Web%20de%20p%EAche/images/Miniatures/Bain%20Fluidis%E9%20001.jpg">
De plus, les librairies js ne pointent pas au bon endroit:

Code : Tout sélectionner

<script type="text/javascript" src="js/lightbox.js">
voudrait dire que le fichier lightbox.js se trouve dans un dossier js se trouvant dans le dossier Mesbricolages ce qui n'est pas le cas. Il faut donc corriger et mettre:

Code : Tout sélectionner

<script type="text/javascript" src="../js/lightbox.js">
de façon à revenir au bon dossier où se trouvent les librairies.

Commence par reprendre les consignes d'Ymai point par point, corrige ce qui ne va pas. Si ça ne marche toujours pas, on verra où peuvent se trouver les autres erreurs.
Préferez Kompozer 0.8 à Nvu
Défendons nos valeurs, adhérons à l'APRIL
La Démocratie, c'est quand on frappe à votre porte à 6h00 du matin, et que c'est le laitier.
Ymai
Tyrannosaurus Rex
Messages : 4220
Inscription : 12 mars 2005, 11:36

Re: Problème avec kompozer et lightbox 2

Message par Ymai »

terrible45 a écrit :Voilà j'ai fait un essai et ma lightbox fonctionne correctement, mais chemins sont bon...
La preuve cliquez sur "je fais un essai de lightbox" => http://la.peche.ma.passion.free.fr/MesB ... idise.html
OK, mais cet exemple se trouve à la racine du site. Donc, les librairies js sont effectivement au RV.
Les autres pages sont plus loin dans l'arborescence. Les librairies js ne peuvent donc être trouvées au bout du chemin /js/...

Pour bien comprendre où est le souci, il faudrait peut-être envisager une petite révision sur le thème des répertoires, sous-répertoires, chemins absolus, chemins relatifs.
ymai
« Un enfant de cinq ans comprendrait cela ! Allez me chercher un enfant de cinq ans ! »
Groucho Marx.
terrible45
Arias
Messages : 7
Inscription : 24 oct. 2009, 14:40

Re: Problème avec kompozer et lightbox 2

Message par terrible45 »

chinon37 a écrit :Bonjour,
Il est difficile de t'aider si tu ne fais pas un minimum d'efforts.
Ymai t'a fait remarqué que ton image pointait vers le disque dur de ton ordi et non vers le serveur de ton hébergeur. Or, je remarque que c'est toujours le cas. Ton image pointe vers ton disque dur E... comme on peut le voir par le code ci-dessous.

Code : Tout sélectionner

<img style="width: 200px; height: 150px;" class="ImgGaucheHorizontal" alt="1" src="file:///E:/Mon%20Site%20Web%20de%20p%EAche/images/Miniatures/Bain%20Fluidis%E9%20001.jpg">

De plus, les librairies js ne pointent pas au bon endroit:

Code : Tout sélectionner

<script type="text/javascript" src="js/lightbox.js">
voudrait dire que le fichier lightbox.js se trouve dans un dossier js se trouvant dans le dossier Mesbricolages ce qui n'est pas le cas. Il faut donc corriger et mettre:

Code : Tout sélectionner

<script type="text/javascript" src="../js/lightbox.js">
de façon à revenir au bon dossier où se trouvent les librairies.

Commence par reprendre les consignes d'Ymai point par point, corrige ce qui ne va pas. Si ça ne marche toujours pas, on verra où peuvent se trouver les autres erreurs.
A)
Oui je sais qu'il y a une erreur, mais je n'arrive pas a faire autrement lorsque je lui donne son adresse URL, bizarrement celle là ne veut pas la prendre, toutes mes autres photos du sites sont ok sauf ce groupe, donc je vais me replonger dedans pour voir ou se situerais l'erreur.

B)
Je viens de comprendre ce que voulait dire Ymai... Je regarde aussi.

Suis désolé mais des efforts j'en fais mais encore faut il que je comprenne bien tout, je n'y connaissais rien encore il y a deux mois et suis pas très doué en ordi, alors faut pas m'en vouloir car j'essaye de d'apprendre et de comprendre aussi...

Cordialement
Xavier
terrible45
Arias
Messages : 7
Inscription : 24 oct. 2009, 14:40

Re: Problème avec kompozer et lightbox 2

Message par terrible45 »

Voilà, n'ayant pas eu le temps avant, je viens de faire certaines modifs sur la références de mes cibles et cela fonctionne...

MERCI encore et désolé de vous avoir ennuyer avec mes erreurs...
Ymai
Tyrannosaurus Rex
Messages : 4220
Inscription : 12 mars 2005, 11:36

Re: Problème avec kompozer et lightbox 2

Message par Ymai »

Bonjour
terrible45 a écrit :Voilà, n'ayant pas eu le temps avant, je viens de faire certaines modifs sur la références de mes cibles et cela fonctionne...
Pour ceux qui tomberaient sur le même problème, ce serait sympa d'indiquer la nature des "certaines modifs" qui ont permis de débloquer la situation :D
ymai
« Un enfant de cinq ans comprendrait cela ! Allez me chercher un enfant de cinq ans ! »
Groucho Marx.
terrible45
Arias
Messages : 7
Inscription : 24 oct. 2009, 14:40

Re: Problème avec kompozer et lightbox 2

Message par terrible45 »

En fait c'est très simple quand on connait comment fonctionne la page (HTML de gauche) de l'arborescence des chapitres ou dossiers / sous chapitre ou sous dossiers etc de Kompozer, ce qui n'était pas mon cas.

Je n'ai touché qu'à une seule redirection dans le fichier:

au début j'avais ceci:

Code : Tout sélectionner

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <link rel="stylesheet" href="css/lightbox.css"
type="text/css" media="screen">
  <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>
Ensuite version modifié:

Code : Tout sélectionner

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <link rel="stylesheet" href="../css/lightbox.css"
type="text/css" media="screen">
  <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>
seul la partie de la ligne : href="../css/lightbox.css" à été modifié et j'ai ensuite fait des copier coller du fichier "image.lightbox" et du fichier "js.lightbox" dans chaque dossier au lieu de m'amuser à ré écrire les bonnes directions de chaque "src".

Et sa fonctionne nickel chrome.

Encore Merci à Ymai et Chinon37
Répondre

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 3 invités