codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Test dim img</title>
<style type="text/css">
<!--
body,td,th {
	font-family: Trebuchet MS, Verdana, Arial;
	font-size: 12px;
}
-->
</style>

<script language="javascript" type="text/javascript">
<!-- // 
	function verifica_dim() {
		var imm = new Image();
		imm.src = document.form_1.immagine.value;
		/* qui occorre attendere il completamento del caricamento*/
		var w = imm.width;
		var h = imm.height;
	}
// -->
</script>  
</head>
<body>
Test dim Img:
<form action="" method="POST" enctype="multipart/form-data" name="form_1" id="form_1">
	<input name="immagine" type="file" />
    <input name="submit" type="submit" value="Invia" />
</form>
Img:
<form action="" method="POST" name="form_2" id="form_2">
<textarea name="dim_img" cols="20" rows="4"></textarea>
</form>
</body>
</html>
Come posso mettere a video i valori (w,h) dell'immagine nella text area din_img, vorrei poter visualizzare i valori in modo da testare l'effettivo funzionamento dello script
cichity74