1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <html>
<head>
<title>change d'images</title>
<script language="Javascript">
function function1()
{ temp = document.getElementById('img1').src; document.getElementById('img1').src=document.getElementById('img2').src;
document.getElementById('img2').src = document.getElementById('img3').src;
document.getElementById('img3').src = temp ;
window.setTimeout("function1()",1000); }
</script>
</head>
<body>
<form name="changement" action="post">
<fieldset><legend>les images préférées pour chaque etudiant </legend>
<img src="img1.jpg" id="img1" />
<img src="img2.jpg" id="img2" />
<img src="img3.jpg" id="img3" /></br>
<input type="button" value="permutter" onclick="function1();"/>
</fieldset>
</form>
</body>
</html> |