06. april 2004 - 11:19
#4
Eller i CSS:
a.menu, a.menu:link, a.menu:visited {
width: 100%;
display: block;
font-family: geneva, verdana, helvetica, arial;
font-weight: none;
font-size: 11px;
color: #e7e7e7;
background-color: #6b707b;
}
a.menu:hover {
color: #000000;
background-color: #b1b5bc;
}
06. april 2004 - 20:34
#7
Hele tabellen ?-)
Her er den inklusive nødudgang !o]
<script type="text/javascript">
function findParent(elm,tag){
for(e=elm;e.tagName!=tag&&e.tagName!='BODY';e=e.parentNode);
return e;
}
</script>
<table style="background:#abc;border-collapse:collapse;">
<tr>
<td onmouseover="findParent(this,'TABLE').style.backgroundColor='#23f'" onmouseout="findParent(this,'TABLE').style.backgroundColor='#abc'">
tekst</td>
<td onmouseover="findParent(this,'TABLE').style.backgroundColor='#23f'" onmouseout="findParent(this,'TABLE').style.backgroundColor='#abc'">
tekst</td>
<td onmouseover="findParent(this,'TABLE').style.backgroundColor='#23f'" onmouseout="findParent(this,'TABLE').style.backgroundColor='#abc'">
tekst</td>
<td onmouseover="findParent(this,'TABLE').style.backgroundColor='#23f'" onmouseout="findParent(this,'TABLE').style.backgroundColor='#abc'">
tekst</td>
</tr>
<tr>
<td onmouseover="findParent(this,'TABLE').style.backgroundColor='#23f'" onmouseout="findParent(this,'TABLE').style.backgroundColor='#abc'">
tekst</td>
<td onmouseover="findParent(this,'TABLE').style.backgroundColor='#23f'" onmouseout="findParent(this,'TABLE').style.backgroundColor='#abc'">
tekst</td>
<td onmouseover="findParent(this,'TABLE').style.backgroundColor='#23f'" onmouseout="findParent(this,'TABLE').style.backgroundColor='#abc'">
tekst</td>
<td onmouseover="findParent(this,'TABLE').style.backgroundColor='#23f'" onmouseout="findParent(this,'TABLE').style.backgroundColor='#abc'">
tekst</td>
</tr>
<tr>
<td onmouseover="findParent(this,'TABLE').style.backgroundColor='#23f'" onmouseout="findParent(this,'TABLE').style.backgroundColor='#abc'">
tekst</td>
<td onmouseover="findParent(this,'TABLE').style.backgroundColor='#23f'" onmouseout="findParent(this,'TABLE').style.backgroundColor='#abc'">
tekst</td>
<td onmouseover="findParent(this,'TABLE').style.backgroundColor='#23f'" onmouseout="findParent(this,'TABLE').style.backgroundColor='#abc'">
tekst</td>
<td onmouseover="findParent(this,'TABLE').style.backgroundColor='#23f'" onmouseout="findParent(this,'TABLE').style.backgroundColor='#abc'">
tekst</td>
</tr>
</table>
<a onmouseover="findParent(this,'TABLE').style.backgroundColor='#23f'" onmouseout="findParent(this,'TABLE').style.backgroundColor='#fff'">
andet</a>