Merci
actuelle sert à quoi car c'est
var imgActuelle = 1; // initialisation
qui a été initialisée
et je passe quoi à la fonction que je recupère comment?
mon code HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
<!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=utf-8" />
<title>Visionneuse d'images</title>
<script language="javascript" src="visioneuse.js"></script>
<link rel="stylesheet" href="visionneuse.css" media="screen" />
</head>
<body>
<h2 id="titre"> VISIONNEUSE D'IMAGES</h2>
<!--bouttons-->
<div id="boutton">
<input type="button" value="Preccédent" id="prec" onclick="imgSuivante()"/>
<input type="button" value="Suivant" id="suiv" onclick="imgSuivante()"/>
<input type="button" value="Lect / Auto" id="lect" onclick="boucle()"/>
</div>
<!--Images-->
<div id="image">
<img src="image/dune.jpg" title="Dune" alt="Dune" id="1" width="400" height="350" style="display:block; text-align:center" />
<img src="image/eloliene.jpg" title="Eolienne" alt="Eolienne" id="2" width="400" height="350" style="display:none" />
<img src="image/fleur.jpg" title="Fleur" alt="Fleur" id="3" width="400" height="350" style="display:none; text-align:center" />
<img src="image/neige.jpg" title="Neige" alt="Neige" id="4" width="400" height="350" style="display:none" />
<img src="image/neigee.jpg" title="Loup" alt="loup" id="5" width="400" height="350" style="display:none; text-align:center" />
<img src="image/palmiers.jpg" title="Cocotiers" alt="cocotier" id="6" width="400" height="350" style="display:none" />
<img src="image/papillon.jpg" title="Papillon" alt="Papillon" id="7" width="400" height="350" style="display:none; text-align:center" />
<img src="image/pierres.jpg" title="pierre" alt="pierre" id="8" width="400" height="350" style="display:none" />
<img src="image/vagues.jpg" title="vagues" alt="vagues" id="9" width="400" height="350" style="display:none; text-align:center" />
<img src="image/riviere.jpg" title="riviere" alt="riviere" id="10" width="400" height="350" style="display:none" />
</div>
</body>
</html> |
Partager