Ver Mensaje Individual
  #6 (permalink)  
Antiguo 11/01/2008, 17:20
Avatar de 3433
3433
 
Fecha de Ingreso: julio-2007
Mensajes: 7
Antigüedad: 16 años, 10 meses
Puntos: 0
Re: Rellenar text box

pues gracias por su ayuda al final despues de pelearme con el codigo un par de dias logre hacer esto que me va de maravilla

Código:
<form name=codegen>
<p align="right">Dirección (incluir http://): 
<input type=text name=url size=45 value="" tabindex="1" ><br>
Imagen (incluir http://): 
<input type=text name=img size=45 value="" tabindex="2"><br>
Descripción: 
<input type=text name=alt size=45 value="" onchange="this.form.alt1.value=' alt='+this.value;" tabindex="3"><input type=hidden name=alt1 value=""><br>
Ancho (en píxeles): 
<input type=text name=ancho size=2 value="" onchange="this.form.ancho1.value=' width='+this.value" tabindex="4"> 
Alto (en píxeles):     
<input type=text name=alto size=2 value="" onchange="this.form.alto1.value=' height='+this.value;" tabindex="5"> 
Borde (en píxeles):     
<input type=text name=borde size=2 value="" onchange="this.form.borde1.value=' border='+this.value;" tabindex="6">
</p>
<p align="right">
<input type=hidden name=ancho1 value=""><input type=hidden name=alto1 value=""><input type=hidden name=borde1 value="">
<input type=button name=dah value="Generar Código" onclick="this.form.gen.value='<a href='+this.form.url.value+' target=_blank><img src='+this.form.img.value+this.form.alt1.value+this.form.ancho1.value+this.form.alto1.value+this.form.borde1.value+' /></a>';" tabindex="7">
</p>
<p align="right">Código: 
<input type=text name=gen size=52 value="" readonly tabindex="13">   <input type=button onfocus="javascript:this.form.gen.value=this.form.gen.value.toLowerCase();" onclick="javascript:HighlightAll('codegen.gen')" value=Copiar name=copy class="highlighttext" tabindex="8">
</p>
</form>