Edit:
Inizia i messaggi con una maiuscola e termina con un punto.
<html>
<head>
<title>image resize</title>
<script type="text/javascript">
var imgState;
var imgWidth;
var imgHeight;
imgWidth = 95;
function changeimageSize(thisimage){
imgWidth = document.getElementById(thisimage).width;
imgHeight = document.getElementById(thisimage).height;
if(imgWidth == 95){
imgWidth = eval(imgWidth*2);
imgHeight = eval(imgHeight*2);
document.getElementById(thisimage).width = imgWidth;
document.getElementById(thisimage).height = imgHeight;
}else{
if(imgWidth == 190){
imgWidth = eval(imgWidth/2);
imgHeight = eval(imgHeight/2);
}
document.getElementById(thisimage).width = imgWidth;
document.getElementById(thisimage).height = imgHeight;
}
}
</script>
</head>
<body>
<?
$i=0;
while($i<=10)
{
echo"<img src=\"balloons.jpg\" width=\"95\" border=\"0\" alt=\"\" id=\"firstimage".$i."\" onclick=\"changeimageSize(id)\">";
$i++;
}
?>
</body>
</html>