解决RMS与微软的office web app在线预览的BUG冲突
//c和a自己随便取名称
function Custom_AddDocLibMenuItems(c, a) {
//下拉菜单名称
strDisplayText ="使用WebOffice在线打开文档"; //需要执行的脚本,可以自定义 //a.HttpRoot当前的web站点地址 //currentItemID当前的ItemId //a.listName当前列表名称
//STSNavigate是MOSS执行跳转的函数 strAction
=
"STSNavigate('"+a.HttpRoot+"/_layouts/MossWebOfficeMenu/testweboffice.aspx?itemID="+currentItemID+"&listID="+ a.listName +"')";
//下拉菜单显示的图片
strImagePath=a.imagesPath+"oisweb.gif"; //执行脚本
menuOption=CAMOpt(c,strDisplayText,strAction,strImagePath,null,260);
//菜单ID
menuOption.id="ID_MySubMenu"; //return return false;

