en fait en javascript serait le mieux !
En fait j'ai réussi a monter un petit script :
<head>
<title>Document sans nom</title>
<script type="text/javascript"> <!-- function agrandirimage() { image.height="400" } function reduireimage() { image.height="400" } --> </script>
</head>
<body>
<img src="http://172.16.114.237/snapshot.jpg" height="275" name="image" ondblclick="agrandirimage()" onclick="reduireimage()" />
</body>
</html>
cela réduit effectivement mon image cependant je n'arrive pas à l'actualiser avec cette fonction :
<script type="text/javascript">
var addEvent = function(object, eventName, myFunction) {
if(object.addEventListener) {
object.addEventListener(eventName, myFunction, false);
} else if(object.attachEvent) {
object.attachEvent('on'+eventName, myFunction);
}
}
var getId = function(id) {
return document.getElementById(id);
}
var updateImage = function(object, url) {
object.setAttribute('src', url);
}
var loadImage = function() {
var url = 'mon image réduite.htm'+Math.random();
var img = new Image();
img.src = url;
addEvent(img, 'load', function() {
updateImage(getId('img'), url);
window.setTimeout(loadImage, 20);
});
}
addEvent(window, 'load', loadImage);
</script>
<body>
<p><img src="http://172.16.114.237/snapshot.jpg" id="img" alt="" /></p
</body>