MyBB Community Forums

Full Version: Menu active and white like here on Mybb Community
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I would like to know how I can do menu active, like here on MyBB Community. For example, now I see "Community Forum", in menu, "active" and white. If I click on Feature, this change and I see active and white "Feature".

Can you tell me how? Thank you
Thank you. On my forum doesn't work it Sad
Use this JS :

function setActive() {
  aObj = document.getElementById('nav').getElementsByTagName('a');
  for(i=0;i<aObj.length;i++) { 
    if(document.location.href.indexOf(aObj[i].href)>=0) {
      aObj[i].className='active';
    }
  }
}
(2012-09-10, 09:50 AM)EGman Wrote: [ -> ]Use this JS :

function setActive() {
  aObj = document.getElementById('nav').getElementsByTagName('a');
  for(i=0;i<aObj.length;i++) { 
    if(document.location.href.indexOf(aObj[i].href)>=0) {
      aObj[i].className='active';
    }
  }
}

How and where...? =/