Hallo FraFu.
Und im Generated Source.
Wie komme ich an den?
Zum Beispiel wie folgt:
function getCurrentStyle(node, prop) {
if (!node || !prop) return;
if (window.[link:http://msdn.microsoft.com/workshop/browser/mshtml/reference/IFaces/DisplayServices/GetComputedStyle.asp@title=getComputedStyle]) {
return window.getComputedStyle(node, null)[prop];
} else if (document.[link:http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/currentstyle.asp@title=currentStyle]) {
return node.currentStyle[prop];
}
return undefined; // Oder was auch immer beliebt.
}
Beispielhafte Anwendung:
alert(getCurrentStyle(document.body, 'backgroundColor'));
Einen schönen Donnerstag noch.
Gruß, Mathias
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]