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:10

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:

   <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 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()){
   fontfamily="Arial, Helvetica";


with(milonic=new menuname("mnu_69")){

and then in the body of the document,

<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,c,69,2



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 ...


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


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. :)


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


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