Reposted due to lack of response!!

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
darkcircuituk
Super Advanced
Super Advanced
Posts: 49
Joined: Sat Aug 21, 2004 2:57 pm

Reposted due to lack of response!!

Post by darkcircuituk »

I have added a link to my website homepage on my context right click menu, and when you are not on the homepage, the icon in the context menu is present, but the moment you goto the homepage and then bring up the context menu again, the icon is missing. Can someone tell me why please? :cry: and how to fix it :cry:
darkcircuituk
Super Advanced
Super Advanced
Posts: 49
Joined: Sat Aug 21, 2004 2:57 pm

Here's the code

Post by darkcircuituk »

Below I post the code for the menu_data.js file:

Code: Select all

/* 
   Milonic DHTML Menu Context/Right Click Menu Module contextmenu.js version 1.1 
   This module is only compatible with the Milonic DHTML Menu version 5.16 or higher 

   Copyright 2004 (c) Milonic Solutions Limited. All Rights Reserved. 
   This is a commercial software product, please visit http://milonic.com/ for more information. 
*/ 

_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out 
_menuOpenDelay=150            // The time delay before menus open on mouse over 
_subOffsetTop=0               // Sub menu top offset 
_subOffsetLeft=0              // Sub menu left offset 

contextDisabled=false; 
contextMenu="contextMenu"; 

function it_group_web(){ 
  parent.location=("http://scmpr3/management/Environment_Management/Tools/ITGroupWeb/test/index.htm"); 
} 

function org_process_web(){ 
  parent.location=("http://scmpr3/management/Environment_Management/Tools/OrgProcessWeb/test/index.htm"); 
} 

function measure_meta_data(){ 
  parent.location=("http://scmpr3/management/Environment_Management/Tools/MeasurementMetadataWeb/test/index.htm"); 
} 

function its_programme(){ 
  parent.location=("http://scmpr3/management/Environment_Management/Tools/ProgrammeWeb/ITS_Programme/index.htm"); 
} 

function its_cycle_1(){ 
  parent.location=("http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/index.htm"); 
} 

function its_cycle_2(){ 
  parent.location=("http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_Cycle2/index.htm"); 
} 

function rclick(e){ 
   if(contextDisabled) 
   { 
      _d.oncontextmenu=null 
      return true; 
   } 
   if(_d.all)ev=event.button; else ev=e.which 
   if(ev==2||ev==3){ 
      _gm=getMenuByName(contextMenu) 
      if(_gm!=null)popup(contextMenu,1) 
      return false 
   } 
   else{ 
      //if(ev==1)closeAllMenus(); 
   } 
   return true; 
} 

if(ns4){ 
   _d.captureEvents(Event.MOUSEDOWN); 
   _d.onmousedown=rclick; 
} 
else{ 
   _d.onmouseup=rclick 
   _d.oncontextmenu=new Function("return false") 
} 

function Vsrc(){window.location="view-source:"+window.location.href} 

with(contextStyle=new mm_style) 
{ 
     onbgcolor="#ECF4F9"; 
       oncolor="#000000"; 
    offbgcolor="#ffffff"; 
      offcolor="#000000"; 
   bordercolor="#999999"; 
   borderstyle="solid"; 
   borderwidth=1 
    overfilter="Fade(duration=0.2);Shadow(color='#777777', Direction=135, Strength=3)" 
     pagecolor=""; 
   pagebgcolor="#eeeeee"; 
    pageborder="1px solid #ffffff"; 
    pageimage="http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/db_red.gif"; 
      onborder="1px solid #316AC5"; 
separatorcolor="#999999"; 
     outfilter="randomdissolve(duration=0.4)" 
      fontsize="75%"; 
     fontstyle="normal"; 
    fontfamily="arial, verdana, tahoma"; 
 separatorsize=0; 
       padding=3 
 headerbgcolor="#4F8EB6"; 
   headercolor="#ffffff"; 
  headerborder="1px solid #000000"; 
      fontsize="10px"; 
      subimage="http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/black_13x13_greyboxed.gif"; 
if(!mac)onborder="1px solid #000000"; 
} 

with(milonic=new menuname("contextMenu")){       
top="offset=2" 
style = contextStyle; 
margin=3 
aI("text=Home Page;url=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/main/home_page.htm;image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/home.gif"); 
aI("text=Intranet;url=http://intranet/;image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/main/home_page.htm;image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/sample.gif"); 
aI("text=ITS Webs;showmenu=ITS Webs;"); 
aI("text=Organisational Webs;showmenu=Organisational Webs;separatorsize=1;"); 
aI("text=Back;url=javascript:history.go(-1);image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/back.gif"); 
aI("text=Forward;url=javascript:history.go(1);image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/forward.gif"); 
aI("text=Refresh;url=javascript:history.go(0);image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/refresh.gif"); 
aI("text=Print;url=javascript:window.print();image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/print.gif"); 
aI("text=Properties;url=javascript:document.properties();image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/browser.gif"); 
aI("text=View Page Source;url=javascript:Vsrc();separatorsize=1;"); 
}; 

with(milonic=new menuname("ITS Webs")){ 
style = contextStyle; 
margin=3; 
overflow="scroll"; 
itemwidth=150; 
aI("text=ITS Programme;url=javascript:its_programme();image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/org.gif"); 
aI("text=ITS Cycle 1;url=javascript:its_cycle_1();image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/org.gif"); 
aI("text=ITS Cycle 2;url=javascript:its_cycle_2();image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/org.gif"); 
}; 

with(milonic=new menuname("Organisational Webs")){ 
style = contextStyle; 
margin=3; 
overflow="scroll"; 
itemwidth=150; 
aI("text=IT Group Web;url=javascript:it_group_web();image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/org.gif"); 
aI("text=Measurement Meta-Data;url=javascript:measure_meta_data();image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/org.gif"); 
aI("text=Org Process Web;url=javascript:org_process_web();image=http://scmpr3/management/Environment_Management/Tools/ProjWeb/IT_Strategy_RUP/js/right_click_menu/images/org.gif"); 
}; 

drawMenus()
The call to the menu can be seen below:

Code: Select all

<head> 
<title>Useful Links</title> 
<link rel="stylesheet" type="text/css" href="http://websites.milonic.com/intranet/include/intranet.css"> 
<script type="text/javascript" src="../js/right_click_menu/menu_data.js"></script> 
<script type="text/javascript" src="../js/right_click_menu/milonic_src.js"></script>    
<script   type="text/javascript"> 
<!-- 
  _d.write("<script language=JavaScript src=../js/right_click_menu/mmenudom.js></script>"); 
--> 
</script> 
<script type="text/javascript" src="../js/right_click_menu/menu_data.js"></script> 
</head> 
Thanks For Any Help You Can Offer

Dave
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Dave,

Since you posted the same question and code in a previous thread, I have responded in the original, to preserve the thread.

Just for future reference, if someone doesn't respond right away, it doesn't necessarily mean you're forgotten. It may simply mean that nobody has an idea yet, or nobody has had a chance to give it some systematc attention. So, lack of response isn't necessarily bad news. It's still OK to bring the topic back to the forefront, but posting the same topic in a new thread breaks the thread, which can be confusing for people who find the thread later, while searching for answers to a similar problem. Instead of a new thread, you can post a reply in the original, like "Hi, just wondering if anyone had any ideas yet...". That's called "bumping" the topic, because it'll bump it up to the top of the que.

Cheers,

Kevin
Post Reply