Ich will einfach nur ein Layer 10 Pixel weiter schieben...
alert(document.getElementById(layerid).style.left); --> "181px"
wert=parseInt(document.getElementById(layerid).style.left)
wert=(wert+10)+"px";
alert(wert); --> "191px"
document.getElementById(layerid).style.left=(wert+10)+"px";-->ERROR
alert(document.getElementById(layerid).style.left);
in der vorletzten Zeile passiert es dann:
Fehler: uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMCSS2Properties.left]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://localhost:2323/schul-sucht/design/layout-2-header.js :: layer_visible :: line 77" data: no]
Bei mir ist der Fehler auch reproduzierbar...