hi
http://www.xs4all.nl/~ppk/js/getstyles.html da hat's auch noch einige Infos zu diesem Thema.
function getStyle(el,styleProp)
{
var x = document.getElementById(el);
if (document.defaultView)
var y = document.defaultView.getComputedStyle(x,null).getPropertyValue(styleProp);
else if (x.currentStyle)
var y = eval('x.currentStyle.' + styleProp);
return y;
}
das ist die Funktion von dort, die in Mozilla und MSIE ab Version 5 (Mac und Windows) funktioniert. Opera und konqueror können's gar nicht.
Grüße aus Bleckede
Kai
p.s. neue URL ;)