1 <!-- include files --> 2 <script src="/resource/1400648652000/dupedetector__menu_resources/menu-resources/jquery.min.js"></script> 3 <link rel="stylesheet" href="/resource/1400648652000/dupedetector__menu_resources/menu-resources/menu.css"> 4 5 <!-- HTML Menu --> 6 7 <div class="dropdown-menu" id="dropdown-menu"> 8 <a href="/003?rlid=RelatedContactList&amp;id=" target="_BLANK"> 9 <img src="/resource/1400648652000/dupedetector__menu_resources/menu-resources/application_view_detail.png" /> 10 Sync Contacts 11 </a> 12 <a href="/006?rlid=RelatedOpportunityList&amp;id=" target="_BLANK"> 13 <img src="/resource/1400648652000/dupedetector__menu_resources/menu-resources/calendar-disabled.png"> 14 Export Orders</a> 15 <a href="/005?rlid=RelatedCaseList&amp;id=" target="_BLANK"> 16 <img src="/resource/1400648652000/dupedetector__menu_resources/menu-resources/zip.png"/> 17 View Cases 18 </a> 19 <div class="break"></div> 20 <a href="/_ui/core/chatter/ui/ChatterPage" target="_BLANK"> 21 <img src="/resource/1400648652000/dupedetector__menu_resources/menu-resources/connect_light_small_short.gif"/> 22 Sync Feeds</a> 23 <a href="00T?rlid=RelatedActivityList&amp;id=" target="_BLANK"> 24 <img src="/resource/1400648652000/dupedetector__menu_resources/menu-resources/phone.png"/> 25 Calls History 26 </a> 27 <a href="/002?parent_id=001900000054UZ7&amp;id=" target="_BLANK"> 28 <img src="/resource/1400648652000/dupedetector__menu_resources/menu-resources/3668432.png"/> 29 Box.Net Documents 30 </a> 31 <a href="00T?rlid=RelatedActivityList&amp;id=" target="_BLANK"> 32 <img src="/resource/1400648652000/dupedetector__menu_resources/menu-resources/feature_gmail_icon.gif"/> 33 Google Mails 34 </a> 35 <div class="break"></div> 36 <a href="00T?rlid=RelatedActivityList&amp;id=" target="_BLANK"> 37 <img src="/resource/1400648652000/dupedetector__menu_resources/menu-resources/delete.png"/> 38 Delete Logs 39 </a> 40 </div> 41 42 43 <!-- JS Part --> 44 <script> 45 function init_sfdc_menu(){ 46 $('.x-grid3-col-00N9000000A4pIp').click(function(event){ 47 event.stopPropagation(); 48 var id = $(this).attr("id").split("_")[0]; 49 50 $('.dropdown-menu').css( {position:"absolute", top:event.pageY-100, left: event.pageX-30}); 51 52 $('.dropdown-menu').find('a').each(function(){ 53 var oldhref = $(this).attr("href"); 54 oldhref = oldhref.substring(0,oldhref.lastIndexOf('=')+1); 55 $(this).attr("href", oldhref + id); 56 }); 57 $('.dropdown-menu').show(); 58 }); 59 60 $(document).click(function(){ 61 $('.dropdown-menu').hide(); 62 }); 63 } 64 65 $(document).ready(function(e) { 66 $('#bodyCell').bind('DOMNodeInserted DOMNodeRemoved', function(event) { 67 setTimeout(init_sfdc_menu(),500); 68 }); 69 70 }); 71 </script>