Zum Inhalt springen

Rollover im GMenü

Erstellt am 15. Januar 2006 · 7 Antworten · letzte Antwort am 17. Januar 2006

Tags: Frage

Axelko ·

Hallo alle zusammen. Ich habe ein kleines Menü-Problem.
Folgendes Menü habe ich mir gebastelt:

#---------------------------------------------------------------------------
#Das Abteilungsmenü
#---------------------------------------------------------------------------

ABTEILUNGSMENU = HMENU
ABTEILUNGSMENU {
special = directory
special.value = 60

1 = GMENU
expAll=1
backColor = #e1ebf9


1.NO {
backColor = #e1ebf9
XY = 160, 25
10 = TEXT
10.text.field = title
10.fontFace = fileadmin/fonts/verdana.ttf
10.fontColor = #144382
10.fontSize = 9
10.niceText = 1
10.offset = 10,15
}

}# ABTEILUNGSMENU.1

Jetzt möchte ich gerne das sich die Schriftfarbe beim Rollover ändert. Ist sicherlich nicht allzu schwierig , aber ich bin noch Typoscriptanfänger und dankbar für jegliche Hilfe.

kaktus ·

mit

RO < 1.NO

{
10.fontColor = #FF9900
}

übernimmst du alle Einstellungen des Normalzustandes in den Rollover und änderst die
Textfarbe auf zum Beispiel orangerot

kaktus

Axelko ·

Leider funktioniert das nicht. Habe es genau so eingefügt es bleibt jedoch alles wie gehabt.

page = PAGE

page {

10.marks {

UEBERSCHRIFT= IMAGE
UEBERSCHRIFT.file = fileadmin/images/Ueberschriften/ueberschrift_badminton_rot.png

ABTEILUNGSBILD= IMAGE
ABTEILUNGSBILD.file = fileadmin/designvorlagen/abteilungsdesignbilder/badminton.gif

#---------------------------------------------------------------------------
#Das Abteilungsmenü
#---------------------------------------------------------------------------

ABTEILUNGSMENU = HMENU
ABTEILUNGSMENU {
special = directory
special.value = 60

1 = GMENU
expAll=1
backColor = #e1ebf9

1.NO {
backColor = #e1ebf9
XY = 160, 25
10 = TEXT
10.text.field = title
10.fontFace = fileadmin/fonts/verdana.ttf
10.fontColor = #144382
10.fontSize = 9
10.niceText = 1
10.offset = 10,15
}


RO < 1.NO
{
10.fontColor = #b60804
}


}# ABTEILUNGSMENU





}#marks
}#page
HH ·

probier das mal

RO < ABTEILUNGSMENU.1.NO
RO = 1
RO {

fontColor = #b60804 
}

ich denke RO = 1 ist wichtig
Harald

Axelko ·

HAllo HH, das funktioniert auch nicht . ICh bin langsam am verzweifeln. Habe gerade gelesen das ein ROllover mit einem Gmenu garnicht möglich ist ?

sfsebatin ·

Hy Axelko,

hier ist ein simples Gmenu mit bis zu 5 Untermenüs.
Das müsstest Du recht leicht in Dein Menü ableiten können.

temp.menu = HMENU
temp.menu { 
  1 = GMENU
  1 {
    NO {
       backColor = #19C6FF
       XY =370, 18
       10 = TEXT
       allWrap =  | <br />
       10.text.field = title
       10.fontFile = t3lib/fonts/arial.ttf
       10.fontSize = 14
       10.antiAlias=1
       10.niceText=0
       10.fontColor= black
       10.offset = 0,15
       }
    RO < .NO
    RO = 1
    RO.10.fontColor = #0D01FF
           ACT < .RO
           ACT = 1
   }
   2 < .1    
    2.NO.10.offset = 10,15
       2.RO.10.fontColor = #DC143C
       2.RO.10.offset = 10,15
           2.ACT.10.offset = 10,15
           2.ACT.10.fontColor = #DC143C
   3 < .2
    3.NO.10.offset = 20,15
       3.RO.10.fontColor = #0D01FF
       3.RO.backColor = #0AA8FF
       3.RO.10.offset = 20,15
           3.ACT.10.offset = 20,15
           3.ACT.10.fontColor = #0D01FF
           3.ACT.backColor = #0AA8FF
   4 < .3
    4.NO.10.offset = 30,15
       4.RO.10.fontColor = #DC143C
       4.RO.10.offset = 30,15
           4.ACT.10.offset = 30,15
           4.ACT.10.fontColor = #DC143C
           4.ACT.backColor = #19C6FF
   5 < .4
    5.NO.10.offset = 40,15
       5.RO.10.fontColor = #0D01FF
       5.RO.10.offset = 40,15
           5.ACT.10.offset = 40,15
           5.ACT.10.fontColor = #0D01FF
}

Auf jeden Fall funktioniert ein Gmenu mit Rollover und Active Effekten.

Gruß
SFsebatin