How to hide manu on sharepoit

Here is a example

<script language="JavaScript">
 var doc = document.getElementsByTagName('ie:menuitem');
 for (var i = 0; i < doc.length; i++)
 {
  item = doc[i];
  if (item.id.match('ExportToSpreadsheet') != null
                || item.id.match('ExportToDatabase') != null
                || item.id.match('EditInGridButton') != null)
  {
   item.hidden=true;
  }
 }
</script>

posted @ 2011-06-23 10:44  withsoso  阅读(162)  评论(0编辑  收藏  举报