saves me tendras que perdonar pues me pase todo el dia con el codigo y esto fue todo lo q pude lograr dime en q me equivoque y gracias.
Código HTML:
<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">
<bgsound src="../Sonidos/Speech Off.wav" loop="l" balance="b" volume="v"></bgsound>
<head>
<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;
}
}
function amaga2(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;
}
}
</script>
</head>
<body style="background-color: transparent;">
<div align="center"><form method="GET" name="checkForm" action="">
<table width="669" border="0">
</table>
<table width="668" height="115" border="0" cellpadding="0" cellspacing="1">
<tr>
<td width="170"><div align="left"><font face="Monotype Corsiva" size="+2">Nombre</font></div></td>
<td colspan="4" align="left"><font face='Monotype Corsiva' size='+1'><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr id='nombre1'>
<td colspan="2"><span onclick="amaga('nombre',1)" id="nombre0">Hallking</span> <span onclick="amaga('nombre',1)" id="nombre0"> Darkking </span></td>
</tr>
<tr id='nombre2' style='display:none'>
<td width="36%"><input type="text" value="Hallking" onblur="amaga('nombre',2)" ></td>
<td width="64%"><input type="text" value="Hallking" onblur="amaga('nombre',2)" ></td>
</tr>
</table>
</font></td>
</tr>
<tr>
<td><div align="left"><font face="Monotype Corsiva" size="+2">Apellido</font></div></td>
<td colspan="4" align="left"><font face='Monotype Corsiva' size='+1'>
<table width="491" border="0">
<tr id='nombre1'>
<td colspan="2" scope="col"> <span onclick="amaga2('nombre',1)" id="nombre0">Quesada</span> <span onclick="amaga2('nombre',1)" id="nombre0">Medina</span> </td>
</tr>
<tr id='nombre2' style='display:none'>
<td width="239" scope="col"><input type="text" value="Ha" onblur="amaga ('nombre',2)" /></td>
<td width="229" scope="col"><input type="text" value="Ha" onblur="amaga ('nombre',2)" /></td>
</tr>
</table>
</font>
</td>
</tr>
<tr align="left">
<td rowspan="2"><font face="Monotype Corsiva" size="+2">Telefono</font></td>
<td width="157"><font size="+1" face="Monotype Corsiva">809-888-8888</font></td>
<td width="167"><font size="+1" face="Monotype Corsiva">809-888-8888</font></td>
<td colspan="2">809-888-8888</td>
</tr>
<tr align="left">
<td><input name="nombre5" type="text" id="nombre6" value="Hallking" onblur="amaga('nombre',2)" /></td>
<td width="167"><input name="nombre6" type="text" id="nombre7" value="Hallking" onblur="amaga('nombre',2)" /></td>
<td colspan="2"><input name="nombre7" type="text" id="nombre8" value="Hallking" onblur="amaga('nombre',2)" /></td>
</tr>
<tr align="left">
<td><font face="Monotype Corsiva" size="+2">Tipo</font></td>
<td>casa</td>
<td>Cel</td>
<td colspan="2">Trabajo</td>
</tr>
<tr align="left">
<td rowspan="2"><font face="Monotype Corsiva" size="+2">Coreo Electronico</font></td>
<td colspan="4"><font size="+1" face="Monotype Corsiva">[email protected]</font></td>
</tr>
<tr align="left">
<td colspan="4"><input name="nombre3" type="text" id="nombre4" value="Hallking" onblur="amaga('nombre',2)" /></td>
</tr>
<tr align="left">
<td rowspan="2"><font face="Monotype Corsiva" size="+2">Dirección</font></td>
<td colspan="2"><font size="+1" face="Monotype Corsiva">calla no me acuerdo</font></td>
<td width="80" rowspan="2"><input type="submit" name="button4" value="Guardar C" /></td>
<td width="66" rowspan="2"><input type="reset" name="button3" value="Borar" /></td>
</tr>
<tr align="left">
<td colspan="2"><input name="nombre4" type="text" id="nombre5" value="Hallking" onblur="amaga('nombre',2)" /></td>
</tr>
</table>
</form></div>
</body>
</html>