凌寒飘香

____成风破浪会有时,直把云帆济沧海!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: :: 管理 ::
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
posted on 2007-07-05 11:00  凌寒飘香  阅读(155)  评论(0编辑  收藏  举报