Código HTML:
Ver original<!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"> <bgsound src="../Sonidos/Speech Off.wav" loop="l" balance="b" volume="v"></bgsound>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script language="JavaScript" type="text/JavaScript"> function amaga(id,num){
if(num=="1"){
//Primer nombres
document.getElementById(id+"1").style.display="none";
document.getElementById(id+"2").style.display="";
document.getElementById(id).value=document.getElementById(id+"0").innerHTML;
}else{
//primer Nombre
document.getElementById(id+"2").style.display="none";
document.getElementById(id+"1").style.display="";
document.getElementById(id+"0").innerHTML=document.getElementById(id).value;
}
}
<body style="background-color: transparent;"> <form method="GET" name="checkForm" action=""> <table width="668" height="115" border="0" cellpadding="0" cellspacing="1"> <td width="170"><div align="left"><font face="Monotype Corsiva" size="+2">Nombre
</font></div></td> <td align="left"><font face='Monotype Corsiva' size='+1'> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <td><span onClick="amaga('nombre',1)" id="nombre0">Hallking Darkking
</span></td> <tr id='nombre2' style='display:none'> <td><input type="text" value="Hallking Darkking" onBlur="amaga('nombre',2)" id="nombre" name="nombre" ></td> <td><div align="left"><font face="Monotype Corsiva" size="+2">Apellido
</font></div></td> <td align="left"><font face='Monotype Corsiva' size='+1'> <table width="491" border="0"> <td colspan="2"> <span onClick="amaga('apellido',1)" id="apellido0">Quesada Medina
</span> </td> <tr id='apellido2' style='display:none'> <td><input type="text" value="Quesada Medina" onBlur="amaga('apellido',2)" id="apellido" name="apellido"/></td>
Hasta ahí puedo leer...
En el mail anterior te dige que no tenias porque tocar el script y lo primero que haces es duplicarlo!!!
Te aconsejo que antes de intentar hacer lo que estas intentando leas algo sobre html, que es un id, para que sirve...
Luego intenta entender lo que he hecho, ahora te he dado un ejemplo con dos campos.... solo tienes que hacer lo mismo con el retos de campos..... pero claro no solo copy/paste!!!
Quim