<style type="text/css">
.menu td{
background:#184A6B;
padding:1px;
}
.menu a{
display:block;
padding:2px;
background:#184A6B;
text-decoration:none;
color:#ffffff;
font:11px Verdana,Geneva,Sans-Serif;
font-weight:bold;
letter-spacing:1px;
}
.menu a:hover{
background:#376586;
color:#000000;
}
.sub a{
background:#6999B8;
font-weight:normal;
letter-spacing:0px;
}
.menu{position:relative;top:0;left:0;}
</style>
<script type="text/javascript">
<!--
intXPadding = 0;
intYPadding = -12;
intTimeout = 50;
arrTimeouts = new Array();
function get_sub(objMenu, intSub)
{
intTable =- 1;
for(j = 0; j < objMenu.childNodes.length; ++j)
{
intTable += (objMenu.childNodes[j].tagName=='TABLE') ? 1 : 0;
if(intTable==intSub)
{
return(objMenu.childNodes[j]);
}
arrTimeouts.push(false);
}
return false;
}
function menu(objElem, blnEvt)
{
//initalisieren de Menues beim ersten Aufruf
if(arrTimeouts.length == 0)
{
objElem.onmouseover = new Function('f','return false');
objMenu = objElem.parentNode;
blnType = (objElem.rows.length > 1) ? 1 : 0;
intItems=(blnType)? objElem.rows.length: objElem.rows[0].cells.length
for(i = 0; i < intItems; ++i)
{
objCell = (blnType)? objElem.rows[i].cells[0] : objElem.rows[0].cells[i];
objCell.onmouseover = new Function('f', 'menu('+i+', 1)');
objCell.onmouseout = new Function('f',' menu('+i+', 0)');
objSub = get_sub(objMenu, i+1);
objSub.style.position = 'absolute';
objSub.style.left = (blnType)
? (objCell.offsetLeft + (objMenu.offsetLeft - objSub.rows[0].cells[0].offsetLeft) + objCell.offsetWidth) + intXPadding
: (objCell.offsetLeft + (objSub.offsetLeft - objSub.rows[0].cells[0].offsetLeft)) + intXPadding;
objSub.style.top = (blnType)
? objCell.offsetTop + (objMenu.offsetTop - objElem.rows[0].cells[0].offsetTop) + intYPadding
: objCell.offsetHeight + (objMenu.offsetTop + objElem.rows[0].cells[0].offsetTop)+ intYPadding;
objSub.id = 'sub'+i;
objSub.width = 1; //fixt opera-Macke mit Tabellenbreite
objSub.onclick = new Function('f', 'this.style.display = "none"');
objSub.onmouseover = new Function('f', 'menu('+i+', 1)');
objSub.onmouseout = new Function('f', 'menu('+i+', 0)');
objSub.className = 'sub';
}
return;
}
//Zeigen
if(blnEvt)
{
clearTimeout(arrTimeouts[objElem]);
document.getElementById('sub'+objElem).style.display = "";
}
//Verstecken
else
{
arrTimeouts[objElem] = setTimeout('document.getElementById("sub'+objElem+'").style.display="none"', intTimeout);
}
}
//-->
</script>
<body>
<div class="menu">
<table width="95%" onmouseover="menu(this)">
<tr>
<td width="20%"><a href="#">Finals</a></td>
<td width="20%"><a href="#">Counter-Strike</a></td>
<td width="20%"><a href="#">Live for Speed</a></td>
<td width="20%"><a href="#">Fifa 2004</a></td>
<td width="20%"><a href="#">Warcraft 3 - TFT</a></td>
</tr>
</table>
<table style="display:none;">
<tr><td><a href="#">Location</a></td></tr>
<tr><td><a href="#">Bilder</a></td></tr>
<tr><td><a href="#">Preisgelder</a></td></tr>
<tr><td><a href="#">Zeitplan</a></td></tr>
</table>
<table style="display:none;">
<tr><td><a href="#">Turnierbaum</a></td></tr>
<tr><td><a href="#">Teamcheck</a></td></tr>
<tr><td><a href="#">Tabelle</a></td></tr>
</table>
<table style="display:none;">
<tr><td><a href="#">Tabelle</a></td></tr>
</table>
<table style="display:none;">
<tr><td><a href="#">Turnierbaum</a></td></tr>
<tr><td><a href="#">Teamcheck</a></td></tr>
<tr><td><a href="#">Tabelle</a></td></tr>
</table>
<table style="display:none;">
<tr><td><a href="#">Turnierbaum</a></td></tr>
<tr><td><a href="#">Teamcheck</a></td></tr>
<tr><td><a href="#">Tabelle</a></td></tr>
</table>
</div>