参见文章:http://www.msd2d.com/Content/Tip_viewitem_03.aspx?section=SharePoint&category=Development&id=0500f3dc-d3b8-4b91-96ad-81292bd4eca8
1打开OWSBROWS.JS文件,在
2在var browseris = new Browseris();行下添加如下代码:
/*ideas coming from Mark Beecham
*/
/*
Open the OWSBROWS.JS and locate the line:
var browseris = new Browseris();
Paste the following code under this line.
*/
/* START - Custom Code*/
//Remove Only Help from the top Banner...
//Attach to Load event
window.attachEvent("onload", new Function("DelHelp_OnLoad();"));
//Handles Addition of "Remove Help" link from top banner
function DelHelp_OnLoad()
{
try{
//hlMySite.innerText=""; //this hidden code line can remove the "MySite"from the top banner
//Get all Tags named "A"
var aTags = document.getElementsByTagName("A");
//Look for "Help" innerText - generally speaking it is the first one
for(var j=0;j<aTags.length;j++){
var aTag = aTags(j);
//If match found...
if(aTag.innerText=="帮助")
{
aTag.innerText="";//assign the empty string to it;
break;//foudn and then get out of the loop
}//end of if
}//end of for
}//try
catch(e){
//Do Nothing - if it doesn't work then no logout appears
}//end of try
}//end of fucntion Del Help
/* END - Custom Code*/
注意:在中文SPS中一定要以UTF-8格式保存该文件,否则无效。