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 34 35 36 37 38 39 40 41 42
   | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" > 
<head> 
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> 
<title>...</title> 
 
 
<style type="text/css">
 
#cadre div {
text-align:center;
float:left;
width:50%;
}
 
</style>
 
</head> 
<body> 
 
<div id="cadre">
<div>la gauche</div>
<div>le bouton droit</div>
</div>
 
<p style="font-weight:bold;text-align:center">
Cliquez à gauche avec le bouton droit.
</p>
 
 
 
<script type="text/javascript">
 
var c=document.getElementById("cadre");
var ch=c.getElementsByTagName("div");
 
setInterval("c.appendChild(ch[0])",1000);
 
</script>
 
</body> 
</html> | 
Partager