hi,
ich habe die alte navi Komplett verworfen und neu zusammen gesetzt. Es passt jetzt fast alles.
Erstmal der Typo3 Code:
#-----------------------------------
# Zweite Navigation links
#-----------------------------------
# Construct the main menu as a nested unordered list.
# It has level1 and level2 entries.
# All formatting will be done via CSS.
temp.menu2 = COA
temp.menu2 {
# the menu object itself, starting off the site root
10 = HMENU
10.entryLevel = 1
# Level1 entries are simple text menu entries,
# (formatted via CSS to run down the left side of the page)
10.1 = TMENU
10.1 {
# Don't really like unneccessary scripting.
noBlur = 1
# Current item should be unlinked and formatted differently.
CUR = 0
# Active items above current item should be formatted differently.
ACTIFSUB = 0
}
# Base formatting of menu entries as list items.
10.1.NO {
wrapItemAndSub = <li class="menu1-lev1-no">|</li>
ATagParams =
}
# Current menu item is unlinked and marked
10.1.CUR {
wrapItemAndSub = <li class="menu1-lev1-cur">|</li>
doNotLinkIt = 1
}
# Active items above current to be formatted differently
10.1.ACTIFSUB {
wrapItemAndSub = <li class="menu1-lev1-act">|</li>
}
# Wrap the level1 menu inside an unordered list
10.1.wrap = <ul class="menu1-lev1">|</ul>
# Level2 entries are simple text menu entries also,
# (formatted very differently via CSS to run left to right
# across the page under the header, so you only see the styling
# classes here.)
10.2 = TMENU
10.2 {
noBlur = 1
CUR = 0
ACTIFSUB = 0
}
# Same formatting of menu entries as list items.
10.2.NO {
wrapItemAndSub = <li class="menu1-lev2-no">|</li>
ATagParams =
}
# Current menu item is unlinked and marked too
10.2.CUR {
wrapItemAndSub = <li class="menu1-lev2-cur">|</li>
doNotLinkIt = 1
}
# Active items above current to be formatted differently as for level1
10.2.ACTIFSUB {
wrapItemAndSub = <li class="menu1-lev2-act">|</li>
}
# Wrap the level2 menu inside an unordered list
10.2.wrap = <ul class="menu1-lev2">|</ul>
}
Wie man sehen kann, habe ich CUR und ACT außer Betrieb gesetzt, weil ich genau dort noch ein Problem habe. Wen ich sie aktiv setze, dann habe ich beim aktiven Link keine Formatierungen. Das ganze Menü wird an für sich nach meinen Wünschen gewrappt.
Es hat den Anschein, als wenn meine CSS Klasse ".menu1-lev1-cur" nicht beachtet wird.
Hier mal der CSS Code
/* NAVIGATION */
/* basics */
li {
margin-top: 0;
margin-bottom: 0;
}
ul {
margin-top: 0;
margin-bottom: 0;
list-style: none;
margin-left: 5px;
}
/* Level 1 */
li a:link, li a:visited, li a:hover, li a:active, li a:focus {
background:#4883BA; color:white;
width:100%; height: 1.0em;
display:block;
border-bottom: 1px solid #85ADD1;
border-left: 1.0em solid #85ADD1;
text-decoration:none;
padding-left: 1.0em; padding-bottom:0.5em;
margin-left: 5px;
margin-top: 5px;
font-size:0.9em;
}
li a:visited { color:#052D51; border-color:#08437A; }
li a:hover { color:#E7EFF6; border-color: #E7EFF6; }
li a:active { color:#052D51; border-color: #E7EFF6; }
li a:focus { color:#052D51; border-color: #E7EFF6; }
.menu1-lev1-cur li a:link, .menu1-lev1-cur li a:visited, .menu1-lev1-cur li a:hover, .menu1-lev1-cur li a:active, .menu$
background:#4883BA; color:white;
width:100%; height: 1.5em;
display:block;
border-bottom: 1px solid #85ADD1;
border-left: 1.2em solid #85ADD1;
text-decoration:none;
padding-left: 2.0em; padding-bottom:0.2em;
margin-bottom: 5px;
margin-left: -10px;
font-size:0.9em;
}
.menu1-lev1-cur li a:visited { color:#052D51; border-color:#08437A; }
.menu1-lev1-cur li a:hover { color:#E7EFF6; border-color: #E7EFF6; }
.menu1-lev1-cur li a:active { color:#052D51; border-color: #E7EFF6; }
.menu1-lev1-cur li a:focus { color:#052D51; border-color: #E7EFF6; }
Bitte nicht wundern, das die Werte die selben sind, es ist nur testweise, bis ich den Fehler gefunden habe.
Die Klassen, *no und *act scheinen das selbe Problem zu haben, habe es aber nicht weiter verfolgt.
Eigentlich bin ich davon ausgegangen, das a:focus die Aufgabe von cur übernimmt, aber es zeigt keine Wirkung.
Testen lässt sich das unter: http://www.wolf-technik.net/index.php?id=11
cu denny