Announcement

Collapse
No announcement yet.

Tabellen

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tabellen

    Ich möchte die hintergrundfarbe eines kästchens in einer tabelle ändern wenn die maus drin ist,<BR>bei nem links sieht das so aus, aber wie bei Tabellen??<BR>
    Oder geht das vieleicht garnicht?<BR><BR>

    In den Head:<BR>
    &lt;script&gt;<BR>
    function highlight(which,color)
    {<BR>
    if (document.all||document.getElementById)<BR>
    which.style.backgroundColor=color<BR>
    }<BR>
    &lt;/script&gt;<BR>
    <BR>
    In den Body:<BR>
    &lt;p&gt;&lt;a href="http://webmastercentral.net/" onMouseover=highlight(this,'white') onMouseout="highlight(this,document.bgColor)"&gt;W ebmaster Central&lt;/a&gt;<BR>
    &lt;p&gt;&lt;a href="http://www.yahoo.de/" onMouseover=highlight(this,'white') onMouseout="highlight(this,document.bgColor)"&gt;Y ahoo Germany&lt;/a&gt;<BR>
    &lt;p&gt;&lt;a href="http://www.yahoo.com/" onMouseover=highlight(this,'white') onMouseout="highlight(this,document.bgColor)">Yaho o!&lt;/a&gt;

  • #2
    <pre>
    Wie? Was soll daran nicht gehen?
    &lt;table&gt;
    &lt;tr&gt;&lt;td onMouseover="this.bgColor='white';" onMouseout="this.bgColor=document.bgColor;"&gt;Ers te Zelle / Erste Zeile&lt;/td&gt;
    &lt;td onMouseover="this.bgColor='white';" onMouseout="this.bgColor=document.bgColor;"&gt;Zwe ite Zelle / Erste Zeile&lt;/td&gt;
    &lt;td onMouseover="this.bgColor='white';" onMouseout="this.bgColor=document.bgColor;"&gt;Dri tte Zelle / Erste Zeile&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;&lt;td onMouseover="this.bgColor='white';" onMouseout="this.bgColor=document.bgColor;"&gt;Ers te Zelle / Zweite Zeile&lt;/td&gt;
    &lt;td onMouseover="this.bgColor='white';" onMouseout="this.bgColor=document.bgColor;"&gt;Zwe ite Zelle / Zweite Zeile&lt;/td&gt;
    &lt;td onMouseover="this.bgColor='white';" onMouseout="this.bgColor=document.bgColor;"&gt;Dri tte Zelle / Zweite Zeile&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;

    Andre
    </pre&gt

    Comment


    • #3
      vielen dank!

      Comment

      Working...
      X