Bonjour...je suis débutant en javascript et je suis un peu perdu ici ! ^^
Voila mon petit probleme, je souhaite créer un code javascript qui, en fonction d'une variable (un chiffre), affichera un certains nombre d'images.
Par exemple si je mets 6 en variable, au chargement de la page, il y aura 6 images qui seront afficher.
Voici comment j'ai commencé :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Question 2</title>
<script type="text/javascript">
function afficheimages ()
{
var nb_image=n
for (nb_image==n)
{
<div id="image" style="position:absolute;top:15px">
<img id="image" src="images/image.gif"/>
</div>
}
}
</script>
</head>
<body>
<div onload="afficheimages ()"></div>
</body>
</html>
Merci !
Nicolas