//define the entity names you want to hide
NavMenuHide("Service Lines","Target Achievements","Account Plan");
function NavMenuHide()
{
if (arguments == null arguments.length == 0) return;
var navBar = document.getElementById("crmNavBar");
if (!navBar) return;
var optionItems = navBar.getElementsByTagName("nobr");
var exitCount = 0;
for (opt=0; opt < optionItems.length ;opt++ )
{
for (a=0; a {
if (optionItems[opt].innerText == arguments[a])
{
// --- hide the menu item
optionItems[opt].parentNode.style.display = "none";
// --- have all of the args been processed?
exitCount ++;
if (exitCount == arguments.length) return;
}
}
}
}
NavMenuHide("Service Lines","Target Achievements","Account Plan");
function NavMenuHide()
{
if (arguments == null arguments.length == 0) return;
var navBar = document.getElementById("crmNavBar");
if (!navBar) return;
var optionItems = navBar.getElementsByTagName("nobr");
var exitCount = 0;
for (opt=0; opt < optionItems.length ;opt++ )
{
for (a=0; a
if (optionItems[opt].innerText == arguments[a])
{
// --- hide the menu item
optionItems[opt].parentNode.style.display = "none";
// --- have all of the args been processed?
exitCount ++;
if (exitCount == arguments.length) return;
}
}
}
}
No comments:
Post a Comment