Andreas: colspan mit Javascript

Beitrag lesen

Hallo zusammen

Ich habe eine Tabelle als Navigationsleiste erstellt:

<table ID="Navigation" cellspacing="0" width="170">

<col width="128" style="padding-left:16;">
<col width="20" style="padding-left:16;">

<tr height="24"><td ID="Abstand" style="border-bottom: 3pt #ffffff solid; colspan:2">&nbsp;</td><td></td></tr>

<tr height="70"><td style="margin-left: 6pt; border-bottom: 3pt #ffffff solid" OnMouseOver="className='besucht'" onclick="iframe.location.href='aktuellPrivat.html'" OnMouseOut="className='bereich'" ID="MenueCtl">Aktuelles</td><td>&nbsp;</td><td>&nbsp;</td></tr>

<tr height="70"><td style="margin-left: 6pt; border-bottom: 3pt #ffffff solid" OnMouseOver="className='besucht'" onclick="iframe.location.href='InternetAbfragePrivat.html'" OnMouseOut="className='bereich'" ID="MenueCtl">Interessante Links<br>und Suchabfragen</td><td>&nbsp;</td></tr>

<tr height="70"><td style="margin-left: 6pt; border-bottom: 3pt #ffffff solid" OnMouseOver="className='besucht'" onclick="iframe.location.href='Emailkonten.html'" OnMouseOut="className='bereich'" ID="MenueCtl">Emailkonten</td><td>&nbsp;</td></tr>

</table>

Und jetzt sollen Seiten aus einem IFrame heraus sobald sie geöffnet sind eine Zelle markieren:

{top.Frame1.document.getElementsByName('Bereiche')[i].className = 'offen'};
    {top.Frame1.document.getElementsByName('Bereiche')[i].onmouseover = ""};
    {top.Frame1.document.getElementsByName('Bereiche')[i].onmouseout = ""};
    {top.Frame1.document.getElementsByName('Bereiche')[i].setAttribute("colspan",2)};

Kann aber style oder setAttribute schreiben. Egal, die Zellen werden bei einer markierten Zelle nicht verbunden.

Danke Euch Gruß Andreas