Habe hier folgendes Menü:
seite.10 {
template = FILE
template.file = fileadmin/demo_template/template.html
workOnSubpart = DOKUMENT
marks.INHALT = CONTENT
marks.INHALT.table = tt_content
marks.TOP_MENU = HMENU
marks.TOP_MENU.special = directory
marks.TOP_MENU.special.value = 27
marks.TOP_MENU.1 = GMENU
marks.TOP_MENU.1 {
NO {
backColor = white
XY = [10.w]+10 , 18
10 = TEXT
10.text.field = title
10.fontFile = fileadmin/demo_template/files/verdana.ttf
10.fontColor = black
10.fontSize = 12
10.offset = 5,12
10.niceText = 0
}
Wie relisieren ich einen Hover Effekt, sodass sich die Schriftfarbe verändert?
So ich habe da was hingekriegt, doch leidert werden die Titel der einzelnen pages nicht in das Menü eingefügt. Wo liegt das Problem?
----
marks.TOP_MENU = HMENU
marks.TOP_MENU.1 = GMENU
marks.TOP_MENU.1.NO {
XY = [10.w]+20,20
backColor = |*| #cccccc || #eeeeee |*|
marks.TOP_MENU = TEXT
marks.TOP_MENU.text.field = title
marks.TOP_MENU.offset = 0,13
marks.TOP_MENU.align = center
marks.TOP_MENU.niceText = 1
}
marks.TOP_MENU.1.RO < marks.TOP_MENU.1.NO
marks.TOP_MENU.1.RO = 1
marks.TOP_MENU.1.RO {
backColor = red
marks.TOP_MENU.fontColor = white
}
}
marks.TOP_MENU.1.NO {
...
marks.TOP_MENU.text.field = title
}
ohne klammern lautet deine zeile
marks.TOP_MENU.1.NO.marks.TOP_MENU.text.field = title
außerdem solltest du wirklich mal nachlesen, s.o.
marks.TOP_MENU = HMENU
marks.TOP_MENU.1 = GMENU
marks.TOP_MENU.1.NO {
XY = [10.w]+20,20
backColor = |*| #cccccc || #eeeeee |*|
10 = TEXT
10.text.field = title
10.offset = 0,13
10.align = center
10.niceText = 0
}
marks.TOP_MENU.1.RO < marks.TOP_MENU.1.NO
marks.TOP_MENU.1.RO = 1
marks.TOP_MENU.1.RO {
backColor = red
}
Okay alles klar, war ein Syntax fehler. Danke.
Der Hover funktioniert jetzt, jetzt will ich die schrift beim Hover noch weiss machen
Doch so:
marks.TOP_MENU = HMENU
marks.TOP_MENU.1 = GMENU
marks.TOP_MENU.1.NO {
XY = [10.w]+20,20
backColor = |*| #cccccc || #eeeeee |*|
10 = TEXT
10.text.field = title
10.offset = 0,13
10.align = center
10.niceText = 0
}
marks.TOP_MENU.1.RO < marks.TOP_MENU.1.NO
marks.TOP_MENU.1.RO = 1
marks.TOP_MENU.1.RO {
backColor = red
10.fontColor = white
}
Geht das leider nicht.
Danke, geht aber ebenfalls nicht.
weise dem NO status eine fontColor zu
10 = TEXT
10.text.field = title
10.offset = 0,13
10.align = center
10.niceText = 0
10.fontColor = #aaaaaa
}
marks.TOP_MENU.1.RO < marks.TOP_MENU.1.NO
marks.TOP_MENU.1.RO = 1
marks.TOP_MENU.1.RO {
backColor = red
10.fontColor = #ffffff
}
Das funktioniert auch nicht.
dann is halt was anderes in deinem code falsch (in dem teil, den du nicht gepostet hast)
marks.TOP_MENU = HMENU
marks.TOP_MENU.1 = GMENU
marks.TOP_MENU.1.NO {
XY = [10.w]+20,20
backColor = |*| #cccccc || #eeeeee |*|
10 = TEXT
10.text.field = title
10.offset = 0,13
10.align = center
10.niceText = 0
10.fontColor = #aaaaaa
}
marks.TOP_MENU.1.RO < marks.TOP_MENU.1.NO
marks.TOP_MENU.1.RO = 1
marks.TOP_MENU.1.RO {
backColor = red
10.fontColor = #ffffff
}
---
uufff... hat niemand sonst eine idee was falsch sein könnte?
hat niemand sonst eine idee was falsch sein könnte?
dein code stimmt, sonst würde ja das rollover mit der backColor auch nicht funktionieren.