Ver Mensaje Individual
  #8 (permalink)  
Antiguo 28/03/2003, 02:21
Avatar de caricatos
caricatos
Moderador
 
Fecha de Ingreso: abril-2002
Ubicación: Torremolinos (Málaga)
Mensajes: 19.607
Antigüedad: 22 años, 10 meses
Puntos: 1284
Hola otra vez: (Hola KarlanKas )

Voy a corregir lo que he puesto (tal vez te valga lo que pone KarlanKas... )
Código PHP:
<html>
<
head>
<
script language="Javascript">
<!--
function 
ini()    {
    
document.getElementById("tabla").style.textAlign "center";
    
document.getElementById("tabla").style.backgroundColor "yellow";
    
document.getElementById("tabla").style.width =
    (
screen.width == 1200) ? 220 :
    (
screen.width == 1024) ? 202 :
    (
screen.width == 800) ? 10 "100%";
}
// -->
</script>
</head>
<body onload="ini()">
<center>
<table id=tabla><tr>
<td style="width:100%">
Pruebas
</td>
</tr>
</table>
</center>
</body>
</html> 
Faltaba ponerlo en una función que se ejecutase en el inicio, y el error de poner 100% sin entrecomillar...

Verás que las dimensiones tienes que acomodarlas a tu gusto.

Saludos