Here's something else you might try, replace (in menuItems.js):
Code:
menuItems:[
//[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
//["Hot Sites"], //create header
["Traviata Kelida AC3", "../renovate/flooring.htm", "_self"],
["Traviata Supreme AC4", "../renovate/AC4.htm", "_self"],
["Traviata Prestige AC5", "../renovate/AC5.htm", "_self"],
["Allure Waterproof", "../renovate/Allure.htm", "_self"],
["Traviata Home Page", "http://www.traviata.co.za", "_blank"],
["Navigate"],
["Back to Renovate", "../renovate/renovate.htm", "_self"]
//["Search", "", "", 2, "no"], //create two column header w/ 2 and 1 column members, requires d_colspan:3
//["Search", "", "", 1],
//["Google", "http://www.google.com/", "_new", 1, "no"], //create three column row, requires d_colspan:3
//["Yahoo", "http://www.yahoo.com/", "_new", 1, "no"],
//["AltaVista", "http://www.altavista.com/", "_new", 1],
//["Personal", "", ""], //create header
//["Ansi Art Gallery", "http://home.comcast.net/~ansiguy", "_new"],
//["John's Javascript Jungle", "http://home.comcast.net/~jscheuer1/side", "_new"] //no comma after last entry
]}; // REQUIRED!! do not edit or remove
with:
Code:
//[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
//["Hot Sites"], //create header
menuItems: (function(ar){
var lp = new RegExp((location.pathname).replace(/\/[^\/]+$/, ''));
for (var i = ar.length - 1; i > -1; --i){
if(ar[i][1] && lp.test(ar[i][1])){
ar.splice(i, 1);
}
}
return ar;
})([["Traviata Kelida AC3", "../renovate/flooring.htm", "_self"],
["Traviata Supreme AC4", "../renovate/AC4.htm", "_self"],
["Traviata Prestige AC5", "../renovate/AC5.htm", "_self"],
["Allure Waterproof", "../renovate/Allure.htm", "_self"],
["Traviata Home Page", "http://www.traviata.co.za", "_blank"],
["Navigate"],
["Back to Renovate", "../renovate/renovate.htm", "_self"] //no comma after last entry
])}; // REQUIRED!! do not edit or remove
This has the same caveat as the other method as regards an index page reached via its folder name alone, and a different one - if the names of the pages are the same, but in different folders, this will remove too much.
What it should do though, since you have neither of those two issues in your menuItems there, is simply skip entirely the link for the page you are on.
Note: This is untested, so keep a backup copy of your menuItems.js file.
Bookmarks