If you want to customize the list or context menu in the document library in Moss, you can use the feature of customaction or add a Content Editor (including a specific JavaScript) on the page) for example:
<Script language = "JavaScript">
Function custom_addlistmenuitems (M, CTX)
{
Strdisplaytext = "Send email ";
Straction = "stsnavigate ('url ')";
Strimagepath = "";
Menuoption = camopt (M, strdisplaytext, straction, strimagepath );
Menuoption. ID = "id_mysubmenu ";
Return false;
}
</SCRIPT>
I personally feel that the latter method is interesting and flexible. I searched and found two implementation methods, one English, one English. I hope it will be helpful to you.
Use JavaScript to customize SharePoint Document Library/list item menu
Http://www.cnblogs.com/ycc/archive/2007/10/30/942223.html
Customizing SharePoint context menus
Http://blogs.msdn.com/bowerm/articles/175691.aspx