Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/06/2008, 16:33
usuaria
 
Fecha de Ingreso: marzo-2007
Mensajes: 302
Antigüedad: 17 años, 2 meses
Puntos: 2
Pregunta como agrego un css desde js??

Tengo esto:

Código:
var head = document.getElementsByTagName('head');
css = document.createElement('link');
css.rel  = 'stylesheet';
css.href = '../css/estilo.css';
css.type = 'text/css';
head.appendChild(css);
el problema es q no me funciona..q esta mal??