pero resulta que anda bien en IE pero en FF no anda, como puedo hacer para que ande? per que no anda en en FF?
Cita:
Gracias por la ayuda <style type="text/css">
<!--
input {
margin-top:10px;
display: block;
text-align:center;
}
form{
text-align:center;
width:400px;
margin-left:auto;
margin-right:auto;
}
-->
</style>
<script language="javascript">
function refreshImg(form1){
document.form1.picture.src = 'file:///'+ document.form1.imageField.value;
}
</script>
</head>
<body>
<form name="form1" id="form1" action="" method="post" enctype="multipart/form-data" >
<img src="NoImage.JPG" id="picture" alt="vista previa"/>
<input name="imageField" type="file" onChange="refreshImg(this.form)">
</form>
</body>
<!--
input {
margin-top:10px;
display: block;
text-align:center;
}
form{
text-align:center;
width:400px;
margin-left:auto;
margin-right:auto;
}
-->
</style>
<script language="javascript">
function refreshImg(form1){
document.form1.picture.src = 'file:///'+ document.form1.imageField.value;
}
</script>
</head>
<body>
<form name="form1" id="form1" action="" method="post" enctype="multipart/form-data" >
<img src="NoImage.JPG" id="picture" alt="vista previa"/>
<input name="imageField" type="file" onChange="refreshImg(this.form)">
</form>
</body>