Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/05/2009, 13:17
Avatar de farra
farra
 
Fecha de Ingreso: marzo-2008
Ubicación: Aqui estoy
Mensajes: 574
Antigüedad: 16 años, 1 mes
Puntos: 20
Respuesta: Cómo mostrar una foto de la imagen a enviar en un formulario

yo lo hacia asi:
Código HTML:
<!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>Documento sin t&iacute;tulo</title>
<script>
function muestrafoto(Filename) { 
var Form = document.form1; 
var File1 = form1.file.value; 
document.getElementById('foto').src='file://'+File1; 
}
</script>
</head>

<body>
<div align="center">
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
   <img name="foto" src="sinfoto.jpg" width="32" height="32"  id="foto" /><br />  
   <br /> <label> 
  <input type="file" name="file" id="file" onchange="muestrafoto();" />
  <a href="javascript:muestrafoto();">mostrar</a><br />
  </label>
</form>
</div>
</body>
</html> 
pero ahora con los nuevos navegadores al parecer ya no funciona mas...
__________________
Firma:
Es mas dificil para el mono entender que el hombre desciende de el....

PD: Siempre doy karma al que me da una buena respuesta... ;0)