Hallo Leute,
ich habe ein Typoscript Problem. Und zwar habe ich ein grafisches Menu (GMENU) welches im Normalzustand (NO) ein Bild mit Breite 191px und im RollOverzustand ein Bild mit Breite 204px generieren soll. Leider übernimmt der RO-Zustand nicht die neue Breite.
Was mache ich falsch? Wäre euch für jeden kleinen Tip dankbar!
lib.mainmenu = HMENU
lib.mainmenu.1 = GMENU
lib.mainmenu.1.NO {
XY = 191,61
wrap = | <br />
5 = IMAGE
5.file = fileadmin/layout_images/btn_mainmenu_no.gif
10 = TEXT
10.text.field = nav_title // title
10.fontColor = #999999
10.niceText = 1
10.fontSize = 20
10.offset = 10,40
}
lib.mainmenu.1.RO = 1
lib.mainmenu.1.RO {
XY = 204,61
wrap = | <br />
5 = IMAGE
5.file = fileadmin/layout_images/btn_mainmenu_ho_.gif
10 = TEXT
10.text.field = nav_title // title
10.fontColor = #333333
10.niceText = 1
10.fontSize = 20
10.offset = 10,40
}
lib.mainmenu.1.ACT < lib.mainmenu.1.RO
Ich vermute, dass das ein Problem mit der JS Funktion ist, die die bilder austauscht. Kannst du nicht das erste Bild auch mit 204px generieren lassen, aber dann transparent oder sowas?
Grüße
Christian
Hi Christian,
danke so funktioniert es! Komischerweise muss ich eine andere backColor als die default (white) angeben damit es transparent wird. Naja es funktioniert und das ist die Hauptsache! Nochmals Danke für die schnelle Antwort.
Hier noch mal der vollständige Code wie ich ihn produktiv einsetze:
lib.mainmenu = HMENU
lib.mainmenu.1 = GMENU
lib.mainmenu.1.wrap = <ul id="mainmenu">|</ul>
lib.mainmenu.1.NO {
XY = 204,61
transparentBackground = 1
backColor = black
wrap = <li>|</li>
5 = IMAGE
5.file = fileadmin/layout_images/btn_mainmenu_no.gif
10 = TEXT
10.text.field = nav_title // title
10.fontColor = #999999
10.niceText = 1
10.fontSize = 20
10.offset = 10,40
}
lib.mainmenu.1.RO = 1
lib.mainmenu.1.RO {
XY = 204,61
transparentBackground = 0
wrap = <li>|</li>
5 = IMAGE
5.file = fileadmin/layout_images/btn_mainmenu_ho_.gif
10 = TEXT
10.text.field = nav_title // title
10.fontColor = #333333
10.niceText = 1
10.fontSize = 20
10.offset = 10,40
}
lib.mainmenu.1.ACT < lib.mainmenu.1.RO