[TYPO3] RO_chBgColor & optionSplit
    Anders Kongsted 
    typo3 at kongsted.dk
       
    Thu May 31 23:50:50 CEST 2007
    
    
  
Hi,
I'm trying to create a TMENU where the BGcolor has to be different on 
each item when it is active. It work with NO and ACT, but I would like 
to have a RO-effect too.
Is that possible?
My code until now:
############################################################
# Menu objects:
temp.menu1 = HMENU
temp.menu1.1 = TMENU
temp.menu1.1 {
 expAll = 1
 NO {
  allWrap.insertData=1
  allWrap = <div class="menu"> | <br />
  ATagParams = onmouseover="changecolor(this, '{$pageColor}');" 
onmouseout="changecolor(this, '{$menuBGColor}');"
  wrapItemAndSub = | </div>
}
 
 ACT < .NO
 ACT = 1
 ACT {
  allWrap.insertData=1
  allWrap = <div class="menuACT{field:uid}"> | <br />
  wrapItemAndSub = | </div>
 }
}
temp.menu1.2 = TMENU
temp.menu1.2 {
 NO {
   allWrap = | <br />
 }
}
############################################################
And then there are some CSS to change the colors. Example:
###################
div.menuACT8 {
       width: 100%;
       background: #ec008c;
       margin-bottom: 3px;
}
###################
Regard
Anders Kongsted
    
    
More information about the TYPO3-english
mailing list