Article View: es.comp.lenguajes.java
Article #671Cambiar imagen
From: Paul
Date: Tue, 20 Feb 2007 13:53
Date: Tue, 20 Feb 2007 13:53
24 lines
1633 bytes
1633 bytes
Hola,
Tengo un imput="file", y lo que hace es que cada vez que cambiar el
valor se actualizar una imagen. Esto me funciona bien para Internet
explorer 6 pero para nternet explorer 7 y firefox no funciona.
El cรณdigo es:
function selecciona(toObject, toImage)
{
toImage.src=toObject.value;
}
<input name="txtImg1" type="file" size="50" maxlength="100"
onChange="selecciona(this,Image1)">
<img src="c:\foto1" width="250" height="250" id="Image1" name="Image1"/
>
Alguna idea?
Gracias
Technical Details
Message-ID:
<1171979635.394139.299420@s48g2000cws.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!s48g2000cws.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1116f3,953a8f8e1bea4ee6,start X-Google-Attributes: gid1116f3,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!s48g2000cws.googlegroups.com!not-for-mail From: "Paul" <gambamia2@yahoo.es> Newsgroups: es.comp.lenguajes.java Subject: Cambiar imagen Date: 20 Feb 2007 05:53:55 -0800 Organization: http://groups.google.com Lines: 25 Message-ID: <1171979635.394139.299420@s48g2000cws.googlegroups.com> NNTP-Posting-Host: 213.96.16.85 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1171979641 31530 127.0.0.1 (20 Feb 2007 13:54:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 20 Feb 2007 13:54:01 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: s48g2000cws.googlegroups.com; posting-host=213.96.16.85; posting-account=sJkUqQ0AAABRTeHFjYlHMV-CoFTNtaDQ