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

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
DMLCo
Advanced
Advanced
Posts: 21
Joined: Fri Sep 19, 2003 4:29 pm
Location: Houston, TX
Contact:

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

Post by DMLCo »

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
DMLCo
Solving the Challenges Where People & Technology Meet
Featuring DMLContent Content Management System
http://www.dmlco.com/
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Did you get the most current RC11 (this afternoon - Version 5.0 Release Candidate 11.0 Built: Monday September 22 2003 - 14:57)?
John
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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
User avatar
DMLCo
Advanced
Advanced
Posts: 21
Joined: Fri Sep 19, 2003 4:29 pm
Location: Houston, TX
Contact:

Post by DMLCo »

Response to John: yes, RC11.

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

-Daniel
DMLCo
Solving the Challenges Where People & Technology Meet
Featuring DMLContent Content Management System
http://www.dmlco.com/
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Got somethin for ya, I'll email.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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 :}
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Very nice, boss :!:
John
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Duh :(

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