Menu


How to add a background image to a GMENU



In order to add a background image to the GMENU items you want to generate, you can use this snippet:


temp.menu = HMENU
temp.menu.1 = GMENU
temp.menu.1 {
  NO {
    wrap = <div>|</div>
    XY =100,32
    5 = IMAGE
    5.file = fileadmin/images/background.gif
    10 = TEXT
    10.niceText=1
    10.text.field = title
    10.fontFile = fileadmin/fonts/eras.ttf
    10.offset=6,20
  }
   
  RO < .NO
  RO = 1
  RO.10.fontColor = #FFFFFF
  RO.5.file = fileadmin/images/active.gif
}







Google Search

 
wiki.lacisoft.com
WWW
2009-2011 (c) Lacisoft.com