Zum Inhalt springen

brauche hilfe bei GMENU

Erstellt am 11. März 2004 · 1 Antwort · letzte Antwort am 11. März 2004

Tags: Bilder, Frage

cooper ·

Hi...

ich verzweifel grad etwas an diesem Menü:

Bild: 8dev.de/…/navi.gif

Bei onMouseover soll der jeweilige Menüpunkt rot hinterlegt werden. Der aktive Menüpunkt soll rot bleiben. Dazu hab ich mehrere Fragen:

1. Wie schaffe ich es, dass jeder einzelne Menüpunkt eine eigene Hintergrundgrafik lädt?

2. Ist es möglich das die breite der einzelnen Hintergrundgrafiken sich der Breite des Navigationspunktes anpassen?

3. Ist es möglich das ich auf grafischen Buttons reinen Text ausgebe? Also den Namen des Navigationspunktes nicht mit dem Gifbuilder in die Grafik render sonder HTML Text über die Grafik.

## NAVIGATION
  marks.MENU1 = HMENU
  marks.MENU1.1 = GMENU
  marks.MENU1.excludeUidList = 391
  marks.MENU1.1 {
    expAll=1
    NO {
      XY = 117, 30
      5 = IMAGE
      5.file = fileadmin/test/images/eight_navi_no.gif
      10 = TEXT
      10.fontColor = #ffffff
      10.text.field = title
      10.fontFile = fileadmin/test/inc/arialbi.ttf
      10.fontSize = 12
      10.antiAlias= 1
      10.niceText = 0
      10.align = center
      10.offset = 0, 18
      wrap = <td>|</td>
    } 
    ACT < .NO 
    ACT = 1 
    ACT { 
      5 = IMAGE 
      5.file = fileadmin/test/images/eight_navi_act.gif
      10.fontColor = #ffffff
      wrap = <td>|</td>
    }
   
    RO < .NO 
    RO = 1 
    RO { 
      5 = IMAGE 
      5.file = fileadmin/test/images/eight_navi_over.gif
      10.fontColor = #ffffff
      wrap = <td>|</td>
    } 

  }

Mit dem o.g. Code wird schon mal die Navigation an der richtigen Stelle ausgegeben und funktioniert auch soweit. Jetzt muss ich nur noch rausfinden wie ich die einzelnen Menüpunkte mit eigenen Hintergrundgrafiken versehen kann.

cooper ·

Habs doch noch hinbekommen... Bin zwar den Kompromiss eingegangen das die Buttonbeschreibung nicht der gifbuilder übernimmt, sondern der Grafiker, aber die Bezeichnung der Navigationspunkte wird sich sowieso nicht ändern. Wen es interessiert, so hab ich das gelöst:

## NAVIGATION
  marks.MENU1 = HMENU
  marks.MENU1.1 = GMENU
  marks.MENU1.excludeUidList = 391
  marks.MENU1.1 {
    expAll=1
    NO {
      5 = IMAGE
      5.file = fileadmin/test/images/home_low.gif || fileadmin/test/images/produkte_low.gif || fileadmin/test/images/service_low.gif || fileadmin/test/images/kalkulation_low.gif || fileadmin/test/images/kontakt_low.gif
      XY = [5.w],[5.h]
      wrap = <td width="94" height="32">|</td> || <td width="107" height="32">|</td> || <td width="94" height="32">|</td> || <td width="119" height="32">|</td> || <td width="110" height="32">|</td>
    } 
    ACT < .NO 
    ACT = 1 
    ACT { 
      5 = IMAGE 
      5.file = fileadmin/test/images/home_high.gif || fileadmin/test/images/produkte_high.gif || fileadmin/test/images/service_high.gif || fileadmin/test/images/kalkulation_high.gif || fileadmin/test/images/kontakt_high.gif
      wrap = <td width="94" height="32">|</td> || <td width="107" height="32">|</td> || <td width="94" height="32">|</td> || <td width="119" height="32">|</td> || <td width="110" height="32">|</td>
    }
   
    RO < .NO 
    RO = 1 
    RO { 
      5 = IMAGE 
      5.file = fileadmin/test/images/home_high.gif || fileadmin/test/images/produkte_high.gif || fileadmin/test/images/service_high.gif || fileadmin/test/images/kalkulation_high.gif || fileadmin/test/images/kontakt_high.gif
      wrap = <td width="94" height="32">|</td> || <td width="107" height="32">|</td> || <td width="94" height="32">|</td> || <td width="119" height="32">|</td> || <td width="110" height="32">|</td>
    } 

  }