Zum Inhalt springen

Gmenu 3 Ebene positionieren

Erstellt am 30. Mai 2003 · 4 Antworten · letzte Antwort am 27. Oktober 2003

Tags: Frage

A-Post ·

Hallo an Alle

Ich beschäftige mich seit tagen die 3 Ebene im Gmenu_layer zu positionieren. Mein Ziel ist es die 3 Eben so an zuhänden das sie wie im jeden Windwosfenster like rechts an die 2 Ebene ansetzt.

Bsp. http://www.paninfo.ch

Hier mein Quelltest

marks.MENU_OBEN= HMENU
marks.MENU_OBEN.1 = GMENU_LAYERS
marks.MENU_OBEN.1{
layerStyle = position:absolute;left:0px;top:167px;width:300px;VISIBILITY:hidden;

xPosOffset =-42
lockPosition = x
expAll=1
hideMenuWhenNotOver = 10
hideMenuTimer = 300
NO{
backColor = #cccccc
transparentColor = #CCCCCC
XY = [10.w]+15, 30
10 = TEXT
10.text.field = title
10.fontFace = fileadmin/sea_temp/font/verdana.ttf
10.fontColor=white
10.fontSize=15
10.offset = 5,19
10.antiAlias= 1
#10.niceText = 0
}
ACT < .NO
ACT=1
ACT {
10.fontColor=#000000
}
RO < .NO
RO=1
RO {
10.fontColor=#000000
}
}

marks.MENU_OBEN.2 = GMENU
marks.MENU_OBEN.2 = GMENU_LAYERS
marks.MENU_OBEN.2 {
expAll=1
layerStyle = position:absolute;left:0px;top:400px;width:300px;VISIBILITY:hidden;
xPosOffset =-42
yPosOffset =-167
lockPosition =y
wrap = <tr>|</tr>
NO{

backColor = #D7F5FF
XY = 160, 20
10 = TEXT
10.text.field = title
10.fontFace = fileadmin/sea_temp/font/verdana.ttf
10.fontSize=14
10.offset = 5,14
10.niceText = 0
}
ACT < .NO
ACT=1
ACT {

10.fontColor=#FF6600
}
RO < .NO
RO=1
RO {
backColor = #FF6600
10.fontColor=#DCE6D2
}
}

marks.MENU_OBEN.3 = GMENU
marks.MENU_OBEN.3 {
wrap = <tr>|</tr>

NO{
backColor = #D7F5FF
XY = 160, 20
10 = TEXT
10.text.field = title
10.fontFace = fileadmin/sea_temp/font/verdana.ttf
10.fontSize=14
10.offset = 5,14
10.niceText = 0
}
ACT < .NO
ACT=1
ACT {

backColor = #FFFF99
10.fontColor=#DCE6D2
}
RO < .NO
RO=1
RO {
backColor = #FF6600
10.fontColor=#DCE6D2
}
}

Das Problem was ich noch habe ist das die 3 ebene immer mit der Mouse auf die x position folgt, sprich die 3 ebene hüpft nach oben wenn ich die Mause bewege.

A-Post ·

Weist niemand eine Antwort auf mein Problem oder ist es schlicht weg nicht lösbar??

Danke an alle

stema ·

Hallo, wenn du deinen code folgendermaßen veränderst, so bewegt sich das menü nicht mehr mit der maus, öffnet sich aber auch nicht mehr hinter dem entspr. menüpunkt.
(habe anderen marker gesetzt)

[...]
marks.MENUL.2 = GMENU
marks.MENUL.2 = GMENU_LAYERS
marks.MENUL.2 {

layerStyle = position:absolute;left:0px;top:20px;width:300px;VISIBILITY:hidden;
xPosOffset =-200
#yPosOffset =-167
lockPosition = x
#lockPosition = y
expAll=1
wrap = <tr>|</tr>
NO{
[...]

stema ·

Ok, ich nochmal.
Ist zwar nicht genau das, was du wolltest, aber immerhin bewgt sich der layer nicht mehr:

marks.MENUL.2 = GMENU
marks.MENUL.2 = GMENU_LAYERS
marks.MENUL.2 {
expAll=1
#positionierung 2. menüebene
layerStyle = position:absolute;left:0px;top:400px;width:300px;VISIBILITY:hidden;
#relativer abstand des 3. menüs zu layer 2
xPosOffset =-1
yPosOffset =-1
#lockPosition = xy
dontFollowMouse = 1
wrap = <tr>|</tr>
NO{