<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
<link href="style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0" id="Tableau_01">
<tr>
<td width="700" height="0" align="left" valign="top">
<script type="text/javascript">
var largDepart = 0
var hautDepart = 0
var numImg = 0
var timerRe = 0
var timerAg = 0
var tabImage = new Array()
tabImage[0] = "1.jpg"
tabImage[1] = "2.jpg"
tabImage[2] = "3.jpg"
function init(obj) {
obj.src = tabImage[numImg]
largDepart = 640
hautDepart = 480
}
function changeImage(obj) {
if (timerAg != 0) {
clearTimeout(timerAg)
timerAg = 0
}
if (timerRe == 0) { timerRe = setTimeout(retrecirImage,0) }
}
function agrandirImage() {
var obj = document.getElementById('MonImage')
if (obj.width < largDepart) {
obj.width+=40
obj.height = hautDepart
timerAg = setTimeout(agrandirImage,0)
}
else {
clearTimeout(timerAg)
timerAg = 0
}
}
function retrecirImage() {
var obj = document.getElementById('MonImage')
if (obj.width > 0) {
obj.width-=40
obj.height = hautDepart
timerRe = setTimeout(retrecirImage,0)
}
else {
clearTimeout(timerRe)
timerRe = 0
obj.src = tabImage[(numImg+1)%tabImage.length]
numImg++
timerAg = setTimeout(agrandirImage,0)
}
}
</script>
<DIV><span class="textenormal">cliquer sur l'image (bah y'en a pas sous Firefox, c'est balot).</span><br>
<img id="MonImage" border="0" src="" alt="image" style="" onClick="changeImage(this)"></DIV>
<script language="javascript" type="text/javascript">
init(document.getElementById("MonImage" ))
</script>
</td>
</tr>
</table>
</body>
</html>