
Control de Tabla html
Publicado por Sergio Flores Flores (3 intervenciones) el 24/11/2006 00:48:58
El problema es el Sgte: Cuando se solicita que la tabla desaparezca el resto debajo de ella deje ajustarse, sin embargo no lo hace , es decir se mantiene un cuadro vacio, que esteticamente se ve mal.
Cualquier ayuda me sera util ya que soy nuevo en JavaScript
Gracias
En formulario Html esta :
<TABLE id="Table26" cellSpacing="0" cellPadding="0" width="704" border="1" style="DISPLAY:none;VISIBILITY: hidden;BORDER-COLLAPSE: collapse">
..... lo usual..
luego el script
<script language="javascript">
var Nuevo_border = "<%=var_border%>";
var Var_Valor = String("<%=var_border%>");
if (document.getElementById && document.getElementById("Table26").style)
{
if (Nuevo_border = 0 )
{
document.getElementById("Table26").style="DISPLAY:none;VISIBILITY: hidden;BORDER-COLLAPSE: collapse"
}
else
document.getElementById("Table26").style="DISPLAY:inline;VISIBILITY:visible"
}
else alert("Ud. Necesita un navegador mejor !...");
</script>
Cualquier ayuda me sera util ya que soy nuevo en JavaScript
Gracias
En formulario Html esta :
<TABLE id="Table26" cellSpacing="0" cellPadding="0" width="704" border="1" style="DISPLAY:none;VISIBILITY: hidden;BORDER-COLLAPSE: collapse">
..... lo usual..
luego el script
<script language="javascript">
var Nuevo_border = "<%=var_border%>";
var Var_Valor = String("<%=var_border%>");
if (document.getElementById && document.getElementById("Table26").style)
{
if (Nuevo_border = 0 )
{
document.getElementById("Table26").style="DISPLAY:none;VISIBILITY: hidden;BORDER-COLLAPSE: collapse"
}
else
document.getElementById("Table26").style="DISPLAY:inline;VISIBILITY:visible"
}
else alert("Ud. Necesita un navegador mejor !...");
</script>
Valora esta pregunta


0