Christoph Schnauß: sichtbare/unsichtbare Tabelleninhalte

Beitrag lesen

hi,

onmouseover="document.getElementById('text1').style.display='block';" funktioniert in Opera auch bei abgeschaltetem Javascript.
Hast du ein Testdokument dazu?

Ja. Eine Tabelle:
<table border="1"cellspacing="1"><tr>
<td id="z1">Zeile 1</td>
</tr><tr>
<td id="z2" onClick="document.getElementById('z3').style.display='block'; this.style.display='none'" style="display:none; cursor:pointer">Zeile 2</td>
<td id="z3" onClick="document.getElementById('z2').style.display='block'; this.style.display='none'" style="cursor:pointer">Zeile 3</td>
</tr></table>
Und als Ergänzung ein DIV:
<div id="div1" onClick="document.getElementById('div2').style.display='block'; this.style.display='none'">DIV1</div>
<div id="div2" onClick="document.getElementById('div1').style.display='block'; this.style.display='none'" style="display:none">DIV2</div>

Hier ist es zwar "onclick", aber das ist unerheblich. Ich hatte das vorhin mal kurzfristig zu "onmouseover" geändert.

Von welcher Opera-Version sprichst du?

7.50  -  ist derzeit mein Standardbrowser.

Grüße aus Berlin

Christoph S.