Hallo,
das funktioniert bei mir einwandfrei:
<body>
<div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1"
onMouseOver="this.style.backgroundColor = '#1004b2'"
onMouseOut="this.style.backgroundColor = '#c0bcfa'"
onclick="this.style.backgroundColor='#1004FF'"></div>
</body>
Für das onClick die Farbe wechseln, dann siehst du's auch!
f.
wenn ich dies alles so schreib:
onMouseOver="this.style.backgroundColor = '#1004b2'"
onMouseOut="this.style.backgroundColor = '#c0bcfa'"
onclick="this.style.backgroundColor='#1004b2'"
funktioniert es zwar, aber durch das onmouseover/out wechselt
sich dennoch staendig die farbe.