Hallo Gernot,
Was spricht denn gegen die in SEFHTML beschriebene Variante:
http://de.selfhtml.org/css/layouts/navigationsleisten.htm#modern
nebst der darunter stehenden Erweiterung für den IE?Das erscheint mir auch einfacher.
Ich habe die JavaScript-Erweiterung jetzt erst entdeckt:
<!--[if IE]><script type="text/javascript">
function hoverIE() {
var LI = document.getElementById("Navigation").firstChild;
do {
if(LI.firstChild) { // A (SPAN)
if(LI.firstChild.nextSibling) { // #text
if(LI.firstChild.nextSibling.nextSibling) { // UL ?
LI.onmouseover=einblenden; LI.onmouseout=ausblenden;
}
}
}
LI = LI.nextSibling;
}
while(LI);
}
function einblenden() {
this.firstChild.nextSibling.nextSibling.style.display = "block";
this.firstChild.nextSibling.nextSibling.style.backgroundColor = "silver";
}
function ausblenden() {
this.firstChild.nextSibling.nextSibling.style.display = "none";
}
window.onload=hoverIE;
</script><![endif]-->
Das sieht tatsächlich einfacher aus, auch wenn ich es noch nicht verstehe.
Danke!
Gruß,
Sebastian