Hallo Roland,
Wie liest man nun die Eigenschaften aus?
<html>
<head>
<title>test</title>
<style type="text/css">
.div {background-color:black;color:white;text-align:center;width:150px}
</style>
<script type="text/javascript">
function style_auslesen()
{
for(var e in document.getElementsByTagName("div")[0].style)
{
t=document.createTextNode(e+' :' + document.getElementsByTagName("div")[0].style[e])
document.getElementsByTagName("div")[1].appendChild(t)
document.getElementsByTagName("div")[1].appendChild(document.createElement("br"))
}
}
</script>
</head>
<body>
<div onClick='style_auslesen()' class="div">Klick mich</div>
<div></div>
</body>
</html>
So scheint es leider nicht zu gehen.
(Mozilla 1.6)
Gruß aus Berlin!
eddi