dennisintime!: Zwei Scripts

Mahlzeit...

habe folgendes Prob:

==================
html>
head>
<script language="JavaScript"><!--
 function a(txt) { self.status = txt }
 function b() { self.status = "" }
//--></script>
/head>
body>

onmouseover="a('Text');return true"
onmouseout="b()"
onmouseover="this.bgColor='#FFAC2F'" onmouseout="this.bgColor='#808080'"

/body>
html>

kann ich die beiden outs und over zusammenführen??

Gruß
Dennis

  1. Hallo,

    onmouseover="a('Text');return true"

    ^

    Hier hast du doch auch schon zwei Befehle (richtigerweise mit einem ; getrennt) in ein 'mouseover' gepackt. Was hindert dich daran das auch mit 'this.style.backgroundColor=...' zu machen?

    Gruß, Jan

    1. Hallo,

      onmouseover="a('Text');return true"
                               ^

      Hier hast du doch auch schon zwei Befehle (richtigerweise mit einem ; getrennt) in ein 'mouseover' gepackt. Was hindert dich daran das auch mit 'this.style.backgroundColor=...' zu machen?

      Gruß, Jan

      Mahlzeit...

      also das ganze ist ne Tabelle:

      <td onclick="top.frames.Navigator.location.href='link.html'"
      style="cursor:hand"
      title="Text" onmouseover="a('Text');return true;
      this.bgColor='#ffac2f'" onmouseout="b(); this.bgColor='#808080'"  width="100%" bgcolor="#808080">Text</td>

      Jetzt hab ich versucht:

      onmouseover="a('Text');return true; this.bgColor='#ffac2f'"
      und
      onmouseout="b(); this.bgColor='#808080'"

      Klappt nich

      Ich steh gerade total aufm schlauch...

      Hast du noch nen tipp...

      Gruß
      Dennis

      1. Hallo,

        onmouseover="a('Text');return true"
                                 ^

        Hier hast du doch auch schon zwei Befehle (richtigerweise mit einem ; getrennt) in ein 'mouseover' gepackt. Was hindert dich daran das auch mit 'this.style.backgroundColor=...' zu machen?

        Gruß, Jan

        Mahlzeit...

        also das ganze ist ne Tabelle:

        <td onclick="top.frames.Navigator.location.href='link.html'"
        style="cursor:hand"
        title="Text" onmouseover="a('Text');return true;
        this.bgColor='#ffac2f'" onmouseout="b(); this.bgColor='#808080'"  width="100%" bgcolor="#808080">Text</td>

        Jetzt hab ich versucht:

        onmouseover="a('Text');return true; this.bgColor='#ffac2f'"
        und
        onmouseout="b(); this.bgColor='#808080'"

        Klappt nich

        Ich steh gerade total aufm schlauch...

        Hast du noch nen tipp...

        Gruß
        Dennis

        Hy,

        also, hat geklappt

        habe das so gemacht:

        onmouseover="this.bgcolor='#ffffff';a('text');return true"
        onmouseout="this.bgcolor='#000000';b()"

        Gruß
        Dennis