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: Thursday February 8 2018 - 06:02:25

Stilll Having Offset Problems with PopUp('menu', 1)


Poster: DMLCo
Dated: Monday September 22 2003 - 23:38:34 BST

Hey there ...

This is still a big issue here. The question is how to get an offset from the relative position of the mouse pointer to work (NOTE: I _cannot_ use absolute positioning). I downloaded RC11, and it did not fix this issue (but it did solve some others: THANKS!)

The relevant code pieces are:

Code: Select all

   <script language="JavaScript" src="incs/milonic5/milonic_src.js" type="text/javascript"></SCRIPT>   
   <script language="JavaScript">
      if(ns4)_d.write("<scr"+"ipt language=JavaScript src=incs/milonic5/mmenuns4.js><\/scr"+"ipt>");      
        else _d.write("<scr"+"ipt language=JavaScript src=incs/milonic5/mmenudom.js><\/scr"+"ipt>");
   </script>
   <script language="JavaScript">
<!--
_menuCloseDelay=250           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=50            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=40                // Follow scrolling Rate
_subOffsetTop=5              // Sub menu top offset
_subOffsetLeft=0             // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x

with(cms_ChildNav=new mm_style()){
   offcolor="#FFFFFF";
   offbgcolor="#666699";
   oncolor="#000000";
   onbgcolor="#CCCCCC";
   bordercolor="#000000";
   borderstyle="solid";
   borderwidth=1;
   separatorcolor="#000000";
   separatorsize="1";
   padding=4;
   fontsize=11;
   fontstyle="normal";
   fontfamily="Arial, Helvetica";
   align="left";
   subimage="images/cmst_toc_arrow.gif";
   subimagepadding=2;
}


and

Code: Select all

with(milonic=new menuname("mnu_69")){
   style=cms_ChildNav;
   top="offset=100";
   aI("text=DMLContent;url=dmlcocms.cfm?a=cms,c,23,2,0;showmenu=mnu_23;");
   aI("text=Consulting;url=dmlcocms.cfm?a=cms,c,38,2,0;");
   aI("text=Development;url=dmlcocms.cfm?a=cms,c,5,2,0;");
   aI("text=Architecture;url=dmlcocms.cfm?a=cms,c,8,2,0;");
   aI("text=Hosting;url=dmlcocms.cfm?a=cms,c,7,2,0;");
}


and then in the body of the document,

Code: Select all

<a href="dmlcocms.cfm?a=cms,c,23,2,0" class="tocLinks"  onmouseover="popup('mnu_23', 1);" onmouseout="popdown();">DMLContent<img src="images/cmst_toc_arrow.gif" alt="More Related Content" width="11" height="11" border="0" align="absmiddle" hspace="4"></a>


No matter what I do, there is no change in the lack of offset between the mouse pointer and where the menu appears.

You can see samples of the issue in question at

http://www.dmlco.com/dmlcocms.cfm?a=cms,c,69,2

or

http://www.dmlco.com/dmlcocms.cfm?a=cms,c,28,2,0

or

http://www.dmlco.com/dmlcocms.cfm?a=cms,c,71,2,0

The last one has no submenus, but shows why absolute positioning won't work: the vertical location of the menus is dynamic from page to page.

All help appreciated ...

-Daniel


Poster: John
Dated: Monday September 22 2003 - 23:56:11 BST

Did you get the most current RC11 (this afternoon - Version 5.0 Release Candidate 11.0 Built: Monday September 22 2003 - 14:57)?


Poster: Maz
Dated: Tuesday September 23 2003 - 4:05:48 BST

I get invalid procedure or argument

should font & subimagepadding be " " objects

should code be in body

can you use suboffsettop (does not work in horizontal)

my 2 cents

maz


Poster: DMLCo
Dated: Tuesday September 23 2003 - 5:02:34 BST

Response to John: yes, RC11.

Response to Maz, yeah, but you're using that stong age browser. :)

-Daniel


Poster: Hergio
Dated: Tuesday September 23 2003 - 20:53:20 BST

Got somethin for ya, I'll email.


Poster: Hergio
Dated: Tuesday September 23 2003 - 21:02:03 BST

Andy, I was thinking, it might be feasible to have another overloaded version of the popup function which takes mouse pointer offsets so that you could determine how far away from the mouse a menu will appear. Or possibly even a global variable set above with the other offsets so that anytime the popup,1 function is used, the offsets are used if the user so desires. Hmm? Just a suggestion to add to the hundreds of others you have on your desk! haha :}


Poster: Andy
Dated: Tuesday September 23 2003 - 21:11:28 BST

popup's can now be bound to images - with offsets.

A sample is being worked on. The samples are currently high on our list of priorities so you should see many more appear by the end of the week.

BTW - have you seen the new context menu on the home page - just do a right click and you should see it :D

Cheers
Andy


Poster: John
Dated: Tuesday September 23 2003 - 21:27:30 BST

Very nice, boss :!:


Poster: Hergio
Dated: Tuesday September 23 2003 - 21:36:58 BST

Lovin' it! Very cool. You just tie an onclick effect to the document to listen for the right click and then do the popup when heard? You going to put examples up of it so its yet ANOTHER selling point for milonic? :D Again, nice.


Poster: Maz
Dated: Wednesday September 24 2003 - 0:36:35 BST

Duh :(

I know I'm missing something
where's that mouse
maz