Javascript
Fermé
yann5
Messages postés
398
Date d'inscription
lundi 24 mars 2008
Statut
Membre
Dernière intervention
1 mai 2015
-
9 mars 2010 à 21:10
yann5 Messages postés 398 Date d'inscription lundi 24 mars 2008 Statut Membre Dernière intervention 1 mai 2015 - 9 mars 2010 à 22:01
yann5 Messages postés 398 Date d'inscription lundi 24 mars 2008 Statut Membre Dernière intervention 1 mai 2015 - 9 mars 2010 à 22:01
2 réponses
Zestyr
Messages postés
466
Date d'inscription
mercredi 12 août 2009
Statut
Membre
Dernière intervention
17 octobre 2011
52
9 mars 2010 à 21:36
9 mars 2010 à 21:36
Salut en regardant ton code j'ai pu apercevoir 2 grosse fautes:
if (action==suiv) {photo++;} if (action==prec) {photo--;} ---> if (action=="suiv") {photo++;} if (action=="prec") {photo--;} // ce sont des strings var photo='1' ---> var photo = 1 // c'est un entier !
yann5
Messages postés
398
Date d'inscription
lundi 24 mars 2008
Statut
Membre
Dernière intervention
1 mai 2015
61
9 mars 2010 à 22:01
9 mars 2010 à 22:01
merci mais ca ne marche toujours pas