Que tal.
Esto te calcula el total de estilos que tenga un objeto, pero no funciona en IE (es lo unico
![borracho](http://static.forosdelweb.com/fdwtheme/images/smilies/borracho.png)
)
Código HTML:
<div id="test" style="color:#000000;font-family:Arial, Helvetica, sans-serif; font-size:11px;"></div>
Código PHP:
var obj = document.getElementById('test');
if (obj) {
var t = obj.style.length;
alert(t);
}
en IE manda "undefined". Si alguien quiere aportar bienvenido!
Saludos