
18/03/2007, 14:57
|
| | Fecha de Ingreso: febrero-2007
Mensajes: 33
Antigüedad: 18 años Puntos: 0 | |
Re: Consulta valores input box Hola, gracias por tanta ayuda!, intento probar el codigo de esta manera, pero no me funciona!,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script>
var laCaja=document.getElementById("caja");
function pasaTexto(celda){
laCaja.value=celda.innerText;
}
</script>
</HEAD>
<BODY>
Contenido (pulse una celda): <input type="text" id="caja" />
<table border=1>
<tr>
<td onClick="pasaTexto(this)">1</td>
<td onClick="pasaTexto(this)">2</td>
<td onClick="pasaTexto(this)">3</td>
</tr>
</table>
</BODY>
</HTML>
En que falle?.
Otra consulta(ya de detallista), hay alguna manera para que los objetos que estan en cada celda no tengan el cursor de texto al posarte sobre ella?. |