Hi,
Ich habe ein Problem mit meiner Navigationsleiste. Hier mal ein Link zu einer Testseite: Testseite
Das Problem sollte jedem sofort ins Auge springen. Wenn das Klappmenu aufgerufen wird, wird zum beispiel ein Link wie "LUA Scripten für Anfänger" wie folgt angezeigt:
LUA
Scripten
für
Anfänger
Ich gehe ser davon aus, dass ich irgendwo einen Fehler im Code der Navigationsleiste habe. Ich hoffe sehr, dass ihr mir helfen könnt und schonmal danke im vorraus. Hier der Quellcode:
Ich habe ein Problem mit meiner Navigationsleiste. Hier mal ein Link zu einer Testseite: Testseite
Das Problem sollte jedem sofort ins Auge springen. Wenn das Klappmenu aufgerufen wird, wird zum beispiel ein Link wie "LUA Scripten für Anfänger" wie folgt angezeigt:
LUA
Scripten
für
Anfänger
Ich gehe ser davon aus, dass ich irgendwo einen Fehler im Code der Navigationsleiste habe. Ich hoffe sehr, dass ihr mir helfen könnt und schonmal danke im vorraus. Hier der Quellcode:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title>Dynamische Navigationsleiste</title>
<style type="text/css">
/* Vertikale Navigation */
div#Tmenu {
font-size: 90%;
width: 10em;
padding: 0em;
}
* html div#Tmenu {
width: 15em;
w\idth: 10em; /* (IE 6 in standards-compliant mode) */
}
ul#Navigation {
margin: 0; padding: 0em;
text-align: left;
}
ul#Navigation li {
list-style: none;
position: relative;
margin: 0.4em; padding: 0;
}
* html ul#Navigation li {
margin-right:1.5em; /* Platz fuer Link-Verbreiterung im IE reservieren */
margin-bottom:0;
}
ul#Navigation li ul {
margin: 0; padding: 0;
position: absolute;
top: 0; left: 9.3em;
border: 1px solid white;
background-color: black;
width: 20em;
text-align:left;
padding-left: 5px;
}
*:first-child+html ul#Navigation li ul {
left: 9em; /* (IE 7 in standards-compliant mode) */
}
ul#Navigation li ul li {
margin: 0; padding-left: 0em;
text-align: left;
}
ul#Navigation a, ul#Navigation span {
display: block;
width: 5em;
font-family: Calibri; font-size: 19px; color: rgb(255,255,255);
line-height:19pt;
text-align:left;
text-decoration: none;
padding: 0em 0em;
}
* html ul#Navigation a, * html ul#Navigation span {
width: 15em;
w\idth: 7em; /* (IE 6 in standards-compliant mode) */
text-align: left;
}
ul#Navigation a:hover, ul#Navigation span, li a#aktuell:hover {
}
li a#aktuell {
}
ul#Navigation li ul span {
}
ul#Navigation li a:active {
}
/* dynamisches Ein-/Ausblenden */
ul#Navigation li ul {
display: none;
}
ul#Navigation li:hover>ul {
display: block;
}
ul#Navigation>li:hover>a {
width: 15em;
}
/* dynamisches Ein-/Ausblenden der JavaScript-generierten Klasse im IE */
* html ul#Navigation li.hoverIE {
margin-right:0; /* reservierten Platz freigeben */
margin-bottom:-1.15em; /* Fehlerkorrektur, ggfls. anpassen */
}
* html ul#Navigation li.hoverIE ul {
display: block;
}
* html ul#Navigation li .hoverIE {
width: 15em;
w\idth: 8.2em; /* (IE 6 in standards-compliant mode) */
}
</style>
<!--[if IE]>
<script type="text/javascript">
// <![CDATA[
if(window.navigator.systemLanguage && !window.navigator.language) {
function hoverIE() {
var LI = document.getElementById("Navigation").firstChild;
do {
if (sucheUL(LI.firstChild)) {
LI.onmouseover=einblenden; LI.onmouseout=ausblenden;
}
LI = LI.nextSibling;
}
while(LI);
}
function sucheUL(UL) {
do {
if(UL) UL = UL.nextSibling;
if(UL && UL.nodeName == "UL") return UL;
}
while(UL);
return false;
}
function einblenden() {
this.className="hoverIE"; this.firstChild.className="hoverIE";
}
function ausblenden() {
this.className=""; this.firstChild.className="";
}
window.onload=hoverIE;
}
// ]]>
</script>
<![endif]-->
</head>
<body>
<div id="Tmenu">
<ul id="Navigation">
<li><a>ArcEmu</a>
<ul>
<li><a href="" target="iefensterMain">ArcEmu inkl Scripts kompilieren</a></li>
<li><a href=""iefensterMain">ArcEmu Server in Betrieb nehmen</a></li>
</ul>
</li>
<li><a>LUA-Scripten</a>
<ul>
<li><a href="" target="iefensterMain">LUA Scripten für Anfänger</a></li>
<li><a href="" target="iefensterMain">LUA Scripten für Fortgeschrittene</a></li>
<li><a href="" target="iefensterMain">LUA Befehle Auflistung</a></li>
</ul>
</li>
<li><a>Datenbanken</a>
<ul>
<li><a href="" target="iefensterMain">NextChapter DB installieren</a></li>
<li><a href="" target="iefensterMain">World of Blizzlike DB installieren</a></li>
</ul>
</li>
<li><a>Software</a>
<ul>
<li><a href="" target="iefensterMain">Navicat_SQL_Abfragen</a></li>
</ul>
</li>
<div></div>
</div>
</body>
</html>