Replace Global Links In SharePoint Using JQuery
Posted by ken zheng on February 4, 2009
Below is the JQuery Script to replace the first link of Global Breadcrumbs and you can replace text as well
<script type="text/javascript">
$(document).ready(function(){
//To replace the Global Breadcrumbs
$("#ctl00_PlaceHolderGlobalNavigation_PlaceHolderGlobalNavigationSiteMap_GlobalNavigationSiteMap").children(":first").children(":first").attr("innerText","SimCentral");
$("#ctl00_PlaceHolderGlobalNavigation_PlaceHolderGlobalNavigationSiteMap_GlobalNavigationSiteMap").children(":first").children(":first").attr("href","http://hotmail.com");
//To hide the Global Breadcrumbs
//$("#ctl00_PlaceHolderGlobalNavigation_PlaceHolderGlobalNavigationSiteMap_GlobalNavigationSiteMap").css({display:'none'});
});
</script>
Matthew said
Brilliant! Thanks so much