Thomas Meinike: JavaScript Funktionsaufruf bei OnMouseOver

Beitrag lesen

Hallo,

function bereichbesucht(i)
if (this.document.getElementById('b' + i).bgcolor=="#00FFFF") {
 {this.document.getElementById('b' + i).className = 'Seite';}
else
 {this.document.getElementById('b' + i).className = 'Bereich';}}

  • this ist hier fehl am Platze
  • verwende im Script-Kontext bgColor statt bgcolor oder getAttribute("bgcolor")
  • lt. Stylesheet gibt es die Klassen "besuch" und "Seite", "Bereich" sehe ich nicht.

.besuch { background-color:#003366; color:yellow; cursor:3; }

Was bezweckt "cursor:3;"?

.Seite { background-color:#00FFFF; font-color:#000000; cursor:1;}

Die Eigenschaft "font-color" gibt es nicht.
Was bezweckt "cursor:1;"?

style="cursor:hand; border-style: solid; border-width: 1" OnMouseover="bereichauswahl('1')" OnMouseOut="bereichbesucht('1')"

cursor:hand --> cursor:pointer
border-width:1 --> border-width:1px

Aber was ist hier falsch?????

Naja, da ist eher wenig richtig ;-).

MfG, Thomas

--
SVG - Learning By Coding
http://svglbc.datenverdrahten.de/