Visionneuse photo ne fonctionne pas
Résolu
ethan15
Messages postés
153
Statut
Membre
-
ethan15 Messages postés 153 Statut Membre -
ethan15 Messages postés 153 Statut Membre -
Bonjour j'ai fait mon propre site mais je peine a faire fonctionner ma visionneuse...
seul la premiere photo s'affiche et les autres ne suivent pas..j'ai du faire quelque chose de mal..est ce que quelq'un peut jeter un oeil et me dire si j'ai mal indiquer.le code de la visionneuse n'est pas de moi il doit donc etre OK. Le probleme doit venir des lignes ou on met le chemin des photos et la premiere qui doit apparaitre...la premiere apparait bien, mais les autre ne s'affichent pas...je vous donne la source de ce code
https://twitter.com/ceosammassey
je met aussi "''MODIF FAITE ICI''" lorsque j'ai apporté des modif au code
<!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>Document sans nom</title>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<style type="text/css">
<!--
body {
background-image: url(images/00398_toonlandia_2560x1600.jpg);
background-repeat: no-repeat;
}
-->
</style><script language="JavaScript">
<!--
//PLF-https://twitter.com/ceosammassey
var bauto = 0;
var dossier="images/photos";
var numero = 1;
function objet() {
this.length = objet.arguments.length
for (var i = 0; i < this.length; i++) this[i+1] = objet.arguments[i]
}
var nom = new objet ("Flo cérémonie 6.JPG", "DSC00168.JPG", "groupe.JPG"); ''MODIF FAITE ICI''
function suivante() {
numero += 1;
if (numero == nom.length + 1) numero = 1;
document.image.src = dossier+nom[numero];
}
function precedente() {
numero -= 1;
if (numero == 0) numero = nom.length;
document.image.src = dossier+nom[numero];
}
function changer() {
numero += 1;
if (numero == nom.length + 1) numero = 1;
document.image.src = dossier+nom[numero];
roll=setTimeout("changer()", 1500);
}
function initial() {
window.clearTimeout(roll);
document.image.src = dossier+nom[numero];
}
function auto() {
if (bauto == 0) {
bauto =1; changer();
document.vision.automat.value=" Lect/Stop ";
}
else {
bauto =0; initial();
document.vision.automat.value=" Lect/Auto ";
}
}
//-->
</script></head>
<form name="vision">
<div align="center">
<input type="button" name="precedent" value="Précédente" onClick="precedente();">
<input type="button" name="suivant" value=" Suivante " onClick="suivante();">
<input type="button" name="automat" value=" Lect/Auto "onClick="auto();">
</div>
</form>
<div align="center"> <img src="images/Photos/DSC00068.JPG" width="400" height="400" name="image"></div> ''MODIF FAITE ICI''
<p> </p>
</blockquote>
</body>
</html>
seul la premiere photo s'affiche et les autres ne suivent pas..j'ai du faire quelque chose de mal..est ce que quelq'un peut jeter un oeil et me dire si j'ai mal indiquer.le code de la visionneuse n'est pas de moi il doit donc etre OK. Le probleme doit venir des lignes ou on met le chemin des photos et la premiere qui doit apparaitre...la premiere apparait bien, mais les autre ne s'affichent pas...je vous donne la source de ce code
https://twitter.com/ceosammassey
je met aussi "''MODIF FAITE ICI''" lorsque j'ai apporté des modif au code
<!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>Document sans nom</title>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<style type="text/css">
<!--
body {
background-image: url(images/00398_toonlandia_2560x1600.jpg);
background-repeat: no-repeat;
}
-->
</style><script language="JavaScript">
<!--
//PLF-https://twitter.com/ceosammassey
var bauto = 0;
var dossier="images/photos";
var numero = 1;
function objet() {
this.length = objet.arguments.length
for (var i = 0; i < this.length; i++) this[i+1] = objet.arguments[i]
}
var nom = new objet ("Flo cérémonie 6.JPG", "DSC00168.JPG", "groupe.JPG"); ''MODIF FAITE ICI''
function suivante() {
numero += 1;
if (numero == nom.length + 1) numero = 1;
document.image.src = dossier+nom[numero];
}
function precedente() {
numero -= 1;
if (numero == 0) numero = nom.length;
document.image.src = dossier+nom[numero];
}
function changer() {
numero += 1;
if (numero == nom.length + 1) numero = 1;
document.image.src = dossier+nom[numero];
roll=setTimeout("changer()", 1500);
}
function initial() {
window.clearTimeout(roll);
document.image.src = dossier+nom[numero];
}
function auto() {
if (bauto == 0) {
bauto =1; changer();
document.vision.automat.value=" Lect/Stop ";
}
else {
bauto =0; initial();
document.vision.automat.value=" Lect/Auto ";
}
}
//-->
</script></head>
<form name="vision">
<div align="center">
<input type="button" name="precedent" value="Précédente" onClick="precedente();">
<input type="button" name="suivant" value=" Suivante " onClick="suivante();">
<input type="button" name="automat" value=" Lect/Auto "onClick="auto();">
</div>
</form>
<div align="center"> <img src="images/Photos/DSC00068.JPG" width="400" height="400" name="image"></div> ''MODIF FAITE ICI''
<p> </p>
</blockquote>
</body>
</html>
A voir également:
- Visionneuse photo ne fonctionne pas
- Visionneuse photo windows 7 - Télécharger - Visionnage & Diaporama
- Google photo - Télécharger - Albums photo
- Visionneuse powerpoint - Télécharger - Présentation
- Photo filtre 7 gratuit - Télécharger - Retouche d'image
- Google maps photo maison - Guide
Ton hébergeur est sensible à la casse... tu dois mettre "images/Photos/" avec un "P" majuscules dans la variable "dossier". Je n'ai su le comprendre que parce que tu l'avais mis correctement sur la première image et j'ai vite tilté sur la différence.