change all DL's column display name

Go to C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\LAYOUTS\1033
B2. Copy owsbrowse.js and backup it {pls note change owsbrowse.js will effect all DLs' display on portal}
B3. Go to bottom insert the below codes:

/*ideas coming from Mark Beecham
Adding Logout functionality to a Sharepoint Portal Site,
http://www.msd2d.com/Content/Tip_viewitem_03.aspx?section=SharePoint&category=Development&id=b73b9ea8-a678-47d0-b440-002b7f1c5ab3
*/
/*
Open the OWSBROWS.JS and locate the line:
var browseris = new Browseris();
Paste the following code under this line.
*/
/* START - Custom Code*/
//Attach to Load event
window.attachEvent("onload", new Function("Change_OnLoad();"));
//Change the displayname of a column in DLs
function Change_OnLoad()
{
try{
var ele = document.getElementsByName("diidSortEditor");
var i=0;
for (i=0;i< ele.length;i++)
{
ele[i].innerText="Changed By";
}
}//try
catch(e){
//Do Nothing - if it doesn't work then no logout appears
}//end of try
}//end of fucntion Change_Onload
/* END - Custom Code*/
Reference

你可能感兴趣的:(display)