*pffft* das ypmenu ist wirklich ein harter Brocken.
Mittlerweile klappt es bei mir im Firefox schon ganz gut, jedoch klappt im Internet Explorer leider nix auf.
Ich hatte hier irgendwo im Forum schon mal etwas über dieses Problem gelesen, hatte irgendwas mit <DIV> zu tun... *glaub*
Leider finde ich es nicht mehr.
Hat jemand von euch eine Idee zu diesem Problem?
1000 Dank, Ismet o.O
moin,
bei mir läuft das ypmenu ohne Probleme. Ich habe zwar ein paar Anpassungen vorgenommen, aber das Betraf die Positionierung.
Poste mal ne URL zum anschauen.
Armin
Hi Armin,
leider kann ich dir keine URL posten, da das Teil noch auf localhost läuft. Da es ja im FF klappt, nehme ich mal an, dass da kein grundsätzlicher Fehler drin steckt, sondern irgend ein Detail, welches der IE nicht korrekt interpretiert.
Ich poste mal dir entscheidenen Codeschnipsel, vielleicht erkennt man es daran ja... *hoff*
Das Problem ist leicht beschrieben: Man sieht im IE das "Root"-Menu, aber die Untermenüs klappen nirgendwo auf.
Ist noch alles sehr unordentlich, ich bastele ja noch daran... #paralyzed#
Da ich beim Problem mit dem IE total im Dunkelen tappe, feile ich grade an der Optik des Menüs. Btw: Wo stelle ich das denn ein? :o
1000 Dank für Tipps!!!
T3:
#ypmenu
page.includeLibs.ypMenu = fileadmin/template/ypMenu.php
page.headerData.11 = TEXT
page.headerData.11.value = <script type="text/javascript" src="fileadmin/template/ypSlideOutMenus.js" language="JavaScript"></script>
temp.ypMenu.special = directory
# 1 ist die ID der root-page
temp.ypMenu.special.value = 1
temp.ypMenu = HMENU
temp.ypMenu {
1 = GMENU
1 {
IProcFunc = user_menu->firstLevel
expAll = 1
wrap = |
NO = 1
NO {
wrap = |
XY = [50.w]+20, 31
30 = IMAGE
30.file = fileadmin/template/images/menu_bg2.gif
50 = TEXT
50 {
text.field = title
fontSize = 8
fontFile = fileadmin/template/verdana.ttf
fontColor = #000000
offset = 10,20
niceText = 0
transparentBackground = 1
}
# 100 = || IMAGE
# 100.file = fileadmin/template/images/menu_space.gif
}
IFSUB < temp.ypMenu.1.NO
IFSUB = 1
RO < temp.ypMenu.1.NO
RO = 1
RO {
backColor = #FF8474
30 >
}
IFSUBRO < temp.ypMenu.1.NO
IFSUBRO = 1
IFSUBRO {
backColor = #FF8474
30 >
}
}
2 = TMENU
2 {
IProcFunc = user_menu->secondLevel
expAll = 1
NO.linkWrap = <li>|</li>
}
3 = TMENU
3 {
IProcFunc = user_menu->thirdLevel
expAll = 1
NO.linkWrap = <li>|</li>
}
4 = TMENU
4 {
IProcFunc = user_menu->fourthLevel
expAll = 1
NO.linkWrap = <li>|</li>
}
}
temp.user_menu = USER
temp.user_menu.userFunc = user_menu->menuEnd
CSS, NICHT TS!!!:
/* ---- ypMenu ---- */
.mmContent {
/* nrmale schrift definieren */
font-size: 10px; font-family: Verdana;
}
.mmContent ul {
margin: 0px; padding: 0px;
list-style: none;
z-index:2;
position:relative;
left:0px; top:0px;
}
.mmContent li {
padding: 0px; margin: 0px;
}
.menuBackground {
position:absolute;
left:0px; top:0px;
z-index:1;
}
.mmContent li a {
/* Links bzw. die slideMenü-Elemente definieren */
display: block;
color: #E8E8E8;
font-weight:normal;
font-size: 10px;
font-family: Verdana, Arial, Helvetica, Geneva, SunSans-Regular;
width: 150px;
padding: 5px;
text-decoration: none;
border-bottom: solid 2px #FCFCFC; /* der rand zwischen den MenüElementen */
}
* html .mmContent li a {
width: 160px;
width: 160px;
}
/* */
.mmContent li a:link { background: #FFFFFF; color: #000000; font-size: 12px; }
.mmContent li a:visited { background: #FFFFFF; color: #000000; font-size: 12px; }
.mmContent li a:hover{ background: #E8E8E8; color: #000000; font-size: 12px; }
.mmContent li a:active { background: #E8E8E8; color: #000000; font-size: 12px; }
.mmContent li a.submenu {
background: #FFFFFF; }
.mmContent li a.submenu:hover {
background: #E8E8E8; }
/*
### ypMenu Styles for our belove IE 5.01 ###
*/
.mmContentb {
font-size: 10px; font-family: Verdana;
}
.mmContentb ul {
margin: 0px; padding: 0px;
list-style: none;
z-index:2;
position:relative;
left:0px; top:0px;
}
.mmContentb li {
padding: 0px; margin: 0px;
}
.menuBackground {
position:absolute;
left:0px; top:0px;
z-index:1;
}
.mmContentb li a {
/* Links bzw. die slideMenü-Elemente definieren */
display: block;
width: 150px;
padding: 5px;
color: #444444;
font-weight: normal;
font-size: 12px;
font-family: Verdana, Arial, Helvetica, Geneva, SunSans-Regular;
text-decoration: none;
border-bottom: solid 1px #CCCCCC; /* der rand zwischen den MenüElementen */
}
* html .mmContentb li a {
width: 160px;
width: 160px;
}
.mmContentb li a:link { background: #FFFFFF; color: #000000;}
.mmContentb li a:visited { background: #FFFFFF; color: #000000;}
.mmContentb li a:hover{ background: #999999; color: #000000;}
.mmContentb li a:active { background: #999999; color: #000000;}
.mmContentb li a.submenu {
background: #FFFFFF;
font-size: 12px;
}
.mmContentb li a.submenu:hover {
background: #f2f2f2;
font-size: 12px;
}
.bildunter {
color: #666666;
FONT-SIZE: 9px;
FONT-FAMILY: verdana;
text-decoration: none;
}
... dieses Menü treibt mich noch in den Wahnsinn! #angry#
Die ganzen CSS-Formatierungen bewirken gar nix. Ich habe mal meinen fertig generierten HTML-Quelltext genauer durchgegraben und mit einer Seite verglichen (www.whiskymania.ch), wo das Teil schon funktioniert.
Dort finde ich im Menübereich <li>-Tags, bei mir jedoch nicht.
Anscheinend funktioniert NO.linkWrap bei mir nicht?
2 {
IProcFunc = user_menu->secondLevel
expAll = 1
NO.linkWrap = <li>|</li>
}
*pffft*
... ich fasse es nicht. Nun klappt es, Zufallstreffer:
CSS:
Statt
TD#menue1 { background-color: #EEEEEE; text-align: right;}
habe ich nun
TD#menue1 { background-color: #EEEEEE; }
in meiner CSS-Datei stehen.
Kann mir mal einer verraten, warum eine einfache rechtsbündige Ausrichtung genügt, damit es im IE nicht klappt? #evil#
Jetzt habe ich nur noch das Problem mit der Formatierung <li>...
Tipps???
#angry# auch gefunden:
In der ypMenu.php war die entsprechende Zeile auskommentiert und auf DIV umgearbeitet.