Zum Inhalt springen

event-handler im generierten gmenu-link ändern und entfernen

Erstellt am 18. August 2006 · Noch keine Antworten

Tags: Frage

ray_mue ·

ich möchte die ausgabe eines gmenüs verändern um einen zusätzlichen layer ansprechen zu können.
im <a> tag soll der event-handler onmouseout entfernt und in dem event-handler onmouseover zusätzlich eine funktion eingesetzt werden.

tmp.SUBNAVIGATION = HMENU
tmp.SUBNAVIGATION.entryLevel = 1
tmp.SUBNAVIGATION.1 = GMENU
tmp.SUBNAVIGATION.1 {
NO {
XY = 175,60
backColor = #ffffff
10 = TEXT
10.text.field = title
10.fontFile = uploads/tf/Kabeln.ttf
10.fontSize = 13
10.offset = 0,40
10.fontColor = #000000
10.align = center
10.onmouseout.remove = 1
wrap = <td>|</td>
}
RO = 1
RO {
XY = 175,60
backColor = #e68f02
10 = TEXT
10.text.field = title
10.fontFile = uploads/tf/Kabeln.ttf
10.fontSize = 13
10.offset = 0,40
10.fontColor = #ffffff
10.align = center
}
}

typoscript erzeugt folgende ausgabe

<a href="index.php?id=42" onfocus="blurLink(this);" onmouseover="over('img42_a31c_0');" onmouseout="out('img41_a31c_1');"><img src="typo3temp/menu/e197932dde.png" width="175" height="60" border="0" alt="Industrie" name="img42_a31c_0" /></a>

soll verändert werden in:

<a href="index.php?id=42" onfocus="blurLink(this);" onmouseover="over('img42_a31c_0'); out('img41_a31c_1'); MM_showHideLayers('lyr1','','show');"><img src="typo3temp/menu/e197932dde.png" width="175" height="60" border="0" alt="Industrie" name="img42_a31c_0" /></a></td>

bitte könnt ihr mir sagen wie man das problem lösen kann. bin noch anfänger und wieß noch nicht wo die grenzen von typoscript sind. was macht mann wenns mit TS nicht geht?