Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:08

menuDisplay not working?


Poster: nwilcox
Dated: Thursday August 27 2009 - 15:40:54 BST

http://clients1.serverside.net/acfas/in ... e=interior

I want to have a plain text link in the text copy ("I am opening a Milonic Menu!") pop one of the 'click to open' menus in the site hedaer (like Advanced Search or Login). I tried using 'menuDisplay' and 'popMenu' but neither function is doing what I need it to. 'menuDisplay' does nothing and 'popMenu' pops the menu right at the text hyperlink. Do you have any suggestions for this?

Re: menuDisplay not working?


Poster: Ruth
Dated: Thursday August 27 2009 - 19:50:14 BST

Hi,

Have you tried this

Code:
<A
onclick="_m[getMenuByName('MegaMenuFindColleague')][7]=true;popup('MegaMenuFindColleague',1);"
href="javascript:void(0)">I am opening a Milonic Menu!</A>


The menu opens for me, but since I am on my desktop, I had to put in the full path in the data file for that iframes page. If you want the top searches to open then it would be

Code:
<A
onclick="_m[getMenuByName('MenuMegaTopSearches')][7]=true;popup('MenuMegaTopSearches',1);"
href="javascript:void(0)">I am opening a Milonic Menu!</A>


I hope my brain is functioning today and I understood what you wanted :)

Ruth

Re: menuDisplay not working?


Poster: nwilcox
Dated: Thursday August 27 2009 - 20:33:18 BST

Hi Ruth,

well it opens but it opens it right where I just clicked. I need the menu to open where it would pop in the header of the website layout.

Does that make sense?

Re: menuDisplay not working?


Poster: Ruth
Dated: Thursday August 27 2009 - 23:47:03 BST

Hi,

Yes, and no, as to the sense. Yes, I know what you want, however, what if the person doesn't 'see' where the menu opens? Anyway, as to positioning it. Again, as before, the only way I know how to do it is to put in an 'anchor' image. So, I tried it and it works fine. I made a 1x1px transparent gif named it anchor.gif. I added it right after the closing script tag for that find a colleague menu. So you'd have

Code:
<LI
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; PADDING-TOP: 3px;">
  <SCRIPT language=javascript type=text/javascript>
<!--
with (milonic = new menuname("MenuTopFindColleague")) {                                               
openstyle = "tab";
style = menuStyleTopFindColleague;
alwaysvisible = 1;
menuheight = "23px";
itemheight = "23px";
itemwidth = "124px";
orientation = "horizontal";
position = "relative";   
zindex = 95;                                 
aI("keepalive=1;image=btn_findcolleague.gif;overimage=btn_findcolleague_o.gif;pageimage=btn_findcolleague_o.gif;title=FIND A COLLEAGUE;showmenu=MegaMenuFindColleague;");                  
}
drawMenus();
//-->
</SCRIPT><img src="anchor.gif" id=anchor name=anchor width="1" height="1" border="0">
  </LI>


Then the call would be

Code:
<A
onclick="_m[getMenuByName('MegaMenuFindColleague')][7]=true;popup('MegaMenuFindColleague','anchor',1);"
href="javascript:void(0)">I am opening a Milonic Menu!</A>


Ruth

Re: menuDisplay not working?


Poster: nwilcox
Dated: Friday September 18 2009 - 18:35:30 BST

Ruth

Your approached worked but it is certainly not the way I think it should have worked.

oh well

Thanks again!!!!!!! :D

Re: menuDisplay not working?


Poster: Ruth
Dated: Friday September 18 2009 - 19:20:24 BST

You're welcome :) wheee, I got something right, lol

Ruth