[quote]if (!addEvent(function() { NAVIGATION.init();})) { window.onload = function() { NAVIGATION.init();};}
if (typeof NAVIGATION == "undefined") { NAVIGATION = {}; }
NAVIGATION = {
className: [],
tagName: [],
className2: [],
tagName2: [],
init: function() {
this.className = this.getModuleByClassName(/firstnav/i)[0];
this.tagName = this.className.getElementsByTagName('ul')[0];
this.tagName.innerHTML = this.tagName.innerHTML.replace(/Inbox/, '[b]CHANGETHIS[/b]');
this.tagName.innerHTML = this.tagName.innerHTML.replace(/My Site/, '[b]CHANGETHIS[/b]');
this.tagName.innerHTML = this.tagName.innerHTML.replace(/Contacts/, '[b]CHANGETHIS[/b]');
this.tagName.innerHTML = this.tagName.innerHTML.replace(/Groups/, '[b]CHANGETHIS[/b]');
this.className2 = this.getModuleByClassName(/secondnav/i)[0];
this.tagName2 = this.className2.getElementsByTagName('ul')[0];
this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Post/, '[b]CHANGETHIS[/b]');
this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Invite/, '[b]CHANGETHIS[/b]');
this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Search/, '[b]CHANGETHIS[/b]');
},
getModuleByClassName: function(sClass) {
var elm = [];
var els = document.getElementsByTagName("*") || document.all;
for (var j=0,k=els.length;j<k;j++) {
if (new RegExp(sClass).test(els[j].className))elm.push(els[j]);
}
return elm;
}
};[/quote]
Replace the word [b]CHANGETHIS[/b]..
And Just save this in your JS Files.
So basically... The Final Code can be like this..
<">Works in IE6+ and FF2+
Preview:
http://xavegoi83.multiply.com/
Last edited by xavierkym (2008-01-12 17:52:47)