Hi,
ich möchte folgen HTML MenuCode in TypoScript umsetzen:
<div id="m1" onmouseover="jsFnMoveOn('m1')" onmouseout="jsFnMoveOff('m1')" class="menustyle">
<a href="#"><img src="" alt="" /></a>
</div>
Um ein GMENU Bild soll ein Div mit onMouseOver und onMouseOut
Attributen gesetzt werden. Die Events in dem Div starten eine
JS-Funktion, der eine "getElementbyID" ID übergeben wird.
Daher muß das DIV als ID und die JS eine unquie ID erhalten.
id="menu1" wobei die 1 = Typo3 UID seien soll.
Leider sind meine TypoScript Fähigkeiten noch nicht sehr Weltbewegend ..
Daher: BITTE HELFT MIR!! 🙂
THX a LOT!
Greez Jens
lib.mainMenu = HMENU
lib.mainMenu {
special.value = 1
entryLevel = 0
1 = GMENU
1 {
NO {
allWrap.cObject = TEXT
allWrap.cObject.field = uid
allWrap.cObject.dataWrap = <div id="m{field:uid}" onmouseover="mOn('m{field:uid}')" onmouseout="mOff('m{field:uid}')">
wrap = |</div>
imgParams = align=top
XY = 149, 22
10 = IMAGE
10.file = fileadmin/templates/gfx/menu/bg_no.jpg
20 = TEXT
20 {
transparentBackground = 0
align=left
offset = 5,14
fontColor = #FFFFFF
text.field = title
fontSize = 12
fontFile = fileadmin/ttf/kitchenpolice.ttf
niceText = 1
emboss {
offset = 2,2
highColor = #79A3CC
lowColor = #79A3CC
#blur = 0
#opacity = 80
}
}
}
}
}
[/b]