Ver Mensaje Individual
  #7 (permalink)  
Antiguo 13/04/2004, 04:04
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes
Puntos: 61
Es curioso...

Mira esto:

Código PHP:
<html>
<
head>
    <
title>Untitled</title>
<
STYLE>
#layer1{
POSITION:absolute;
TOP:0pxLEFT:0px;
BACKGROUND-COLOR:green;
BORDER-WIDTH:1px
BORDER-COLOR:black;
width:100px;
height:10px;
z-index=1;
color:red
}
</
style>
<
script>
function 
pepe(){
document.getElementById("layer1").style.width="0px";
alert(document.getElementById("layer1").style.width);

}
</script>
</head>

<body onload="pepe()">
<div id="layer1"></div>

</body>
</html> 
__________________
Cómo escribir

No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.