







|
|
|
 |
| > pb diaporama |
[ Posté par arnaud182 ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 18-09-2008 à 13:20 | 5 messages ]
  bonjour, j'ai un pb avec un diaporama que j'ai trouvé sur ce site, pouvez vous m'aider? merci !
<head>
<script>
var bauto = 1;
var dossier="images";
var numero = 1;
var numero = 2;
var numero = 3;
var numero = 4;
var numero = 5;
var numero = 6;
var numero = 7;
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 ("images/image1.jpg", "images/image2.jpg", "images/image3.jpg", "images/image4.jpg", "images/image5.jpg", "images/image6.jpg", "images/image7.jpg", );
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.getElementById('automat').value=" Arrêt ";
}
else {
bauto =0; initial();
document.getElementById('automat').value=" Diaporama ";
}
} </script>
</head>
<div align="center"> <input name="Precedent"
value="Precedent" onclick="precedente();"
style="color: rgb(255, 0, 0); font-weight: bold;" type="button">
<input name="Suivant" value="Suivant"
onclick="suivante();"
style="color: rgb(255, 0, 0); font-weight: bold;" type="button">
<input name="automat" value="Diaporama"
onclick="auto();" type="button"> </div>
<div align="center"> </div>
<div align="center"><img
style="width: 567px; height: 425px;" src="images/image1.JPG"
name="image"></div>
 
|
|
|
[ Posté par rf92 ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 30-09-2008 à 21:56 | 657 messages ]
  Bonsoir,
et ça bloque où ?
supprime les lignes var numero = 2;
var numero = 3;
var numero = 4;
var numero = 5;
var numero = 6;
var numero = 7;
|
|
remplace la ligne | document.getElementById('automat').value=" Arrêt "; |
| par | document.vision.automat.value=" Arrêt "; |
|
remplace la ligne | document.getElementById('automat').value=" Diaporama "; |
| par | document.vision.automat.value=" Diaporama "; |
|
et si tu ne nous dis pas où tu bloques ni le résultat que tu obtiens (par rapport à ce que tu en attends), ce devrait être assez dur de t'aider.
A+
________________ rf92
A Begwalewe, près de Serule au Botswana, Galetwaselwe Mossi a volé une vache à Sir Seretse Khama. On vous fait grâce du nom de la vache.
Pierre Desproges
|
|
Services email :
  Vous devez vous identifier pour profiter des services par email du forum.
|

|