Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/02/2006, 11:21
johanyn
 
Fecha de Ingreso: febrero-2006
Mensajes: 31
Antigüedad: 19 años
Puntos: 1
Así lo tengo y no funciona, estoy trabajando en firefox,
con o sin el cell.style.width="200px"; hace lo mismo

function addFecha(id){

var tbody = document.getElementById
(id).getElementsByTagName("TBODY")[0];

var row = document.createElement("TR")
j=0;
for(i=0;i<2;i++) {

var cell = document.createElement("TD")
cell.style.aling="center";
cell.style.width="200px";
for(j=0;j<24;j++){
if(j==0) cell.appendChild(document.createTextNode("johana") )
cell.style.border="none";
row.appendChild(cell);
}
if(j==24) cell.style.border="solid black 1px";
}
tbody.appendChild(row);
}


<body onload="addFecha('tablaFecha')" >

<div id="Layer4" style="position:absolute; left:200px; top:97px; width:1500px; height:73px; z-index:4">
<table id="tablaFecha" border="1px" cellspacing="0">
<tbody>

</tbody>
</table>
</div>