[Typo3-linux] GMENU_LAYERS and positioning level-2 menu

Tim tcs777 at gmail.com
Tue Sep 27 19:40:35 CEST 2005


I'm trying to create a horizontal menubar with horizontal submenus.
I'm trying (and Googling) for a few hours, but I can't get it to work
proparly. Below my code.

Now, when I move the mouse over a level-1 item, the level-2 submenu is
showing on top of the screen..

How can I make this submenu to appear just below the level-1 item?!

<code>
page.includeLibs.gmenu_layers = media/scripts/gmenu_layers.php
temp.menu_2 = HMENU
temp.menu_2.1 = GMENU_LAYERS
temp.menu_2.1 {
  layerStyle = position:relative;left:0px;top:0px;VISIBILITY:hidden;
  expAll=1
  NO {
  XY = 120,18
  backColor = #ff9900
  10 = TEXT
  10.text.field = title
  10.offset = 0,13
  10.align = center
  10.fontSize = 8px
  10.fontColor = white
  10.fontFile =  fileadmin/template/main/lucon.ttf
  }
}

temp.menu_2.2 = GMENU
temp.menu_2.2 {
  lockPosition = y
  relativeToParentLayer=1
  relativeToTriggerItem = 1
  hideMenuWhenNotOver = 3
  hideMenuTimer = 500
  freezeMouseover = 1
  NO {
  backColor = #ff9900
  XY = 120,18
  10 = TEXT
  10.text.field = title
  10.offset = 0,13
  10.align = center
  10.fontSize = 8px
  10.fontColor = white
  10.fontFile =  fileadmin/template/main/lucon.ttf
  }
}
</code>



More information about the TYPO3-linux mailing list