|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Scripting dude-volunteer
|
Remove top level of your breadcrumb
If you want to remove the top level of your breadcrumb (because you already have a navbar entry to take your to your top level), then you can use this script to do that.
Simply paste this code into your bottom javascript: Code:
YE.onContentReady("breadCrumbTrail", RemoveTopOfBreadCrumb);
function RemoveTopOfBreadCrumb()
{
var str = this.innerHTML;
str = str.replace(/\n/g, " "); // get rid of linebreaks which cause problems for regular expressions in javascript
this.innerHTML = str.replace(/^\s*<a .*?a>.*?</i, "<");
}
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|