does anybody know how to change menu items out of an iframe?
I have one single page containing the menu and two iframes. I want to change some menu items when a certain page is loaded in one of these iframes.
I'm using the following custom function to change items - it works if used directly in the main page ...
Code: Select all
function mm_changeItemProperty(menuName, itemName, codeRef, newValue, updateDisplay) {
menuName = menuName.toLowerCase();
for (i=0; i<_mi.length; i++)
if (_mi[i][1].replace(/\ \;/ig,' ') == itemName && _m[_mi[i][0]][1] == menuName) break;
if (i == _mi.length) return;
_mi[i][codeRef] = newValue;
if (updateDisplay) BDMenu(_mi[i][0]);
}