Ver Mensaje Individual
  #9 (permalink)  
Antiguo 23/06/2005, 06:51
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 2 meses
Puntos: 61
He intentado hacer algo con lo dicho por caricatos y no sale nada... :(

Código PHP:
<html>
<
head>
<
style>

</
style>

<
script>
function 
ver(esto){

esto=document.getElementById(esto);
for(
a=0;esto['style'][a];a++){
arreglo=esto['style'][a].split("-");
if(
arreglo.length>1){
arreglo[1]=arreglo[1].charAt(0).toUpperCase()+arreglo[1].substring(1);
}
arreglo=arreglo.join("");
alert(arreglo)
esto.innerHTML+=esto['style'][a]+"-"+eval("esto['style']."+arreglo)+"<br>";
}
}
</script>
    <title>Untitled</title>
</head>

<body onload="ver('pepote')">
<div style="font-family: "Courier New", Courier, monospace;
    font-size: 16px;
    font-size-adjust: inherit;
    font-stretch: narrower;
    font-style: italic;
    font-variant: small-caps;
    font-weight: bolder;
    text-align:center;" id="pepote">Camisa<br>
</div>


</body>
</html> 
¿Qué hago mal?
__________________
Cómo escribir

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