Couple questions on MenuItem commands

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
RBoone
Advanced
Advanced
Posts: 12
Joined: Sun Sep 07, 2003 6:51 am
Location: Fremont, CA USA
Contact:

Couple questions on MenuItem commands

Post by RBoone »

First "targetfeatures" the Command Ref file only says it is used to define properties for opening new windows. Where does it get placed, and what is the format?

Next: onfunction and offfunction - I understand that it defines an action for mouseover and mouseout. I assume that this is in "addition" to the normal menu expansion on mouseover?

At least it does appear to work. :-) The function that it calls is a ToolTip, which is defined in a call on the page the menu is displayed on.
Problem that comes up, is the "tip" displays BEHIND the sub menu, and also becomes a "sticky" tip, even though the offfunction is a call to the "clear tip" function.

Any suggestions for a fix on this one is appreciated, as well as an explanation on the "targetfeatures" as listed first.

Regards,
Rand
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Couple questions on MenuItem commands

Post by John »

RBoone wrote:First "targetfeatures" the Command Ref file only says it is used to define properties for opening new windows. Where does it get placed, and what is the format?
This one I can help you with. Anywhere in your aI statement (typically after the url=, but I don't think it matters)...

Code: Select all

target=_new;
...or whatever parameter you need (_top, _blank, etc). Note no quotes of any kind.

Full example...

Code: Select all

aI("text=Macromedia MX 2004;url=http://affiliates.macromedia.com/b.asp?id=1929&p=go/dr_home_aff1;target=_new;status=Authorized Affiliate for all Macromedia products;");
John
RBoone
Advanced
Advanced
Posts: 12
Joined: Sun Sep 07, 2003 6:51 am
Location: Fremont, CA USA
Contact:

features

Post by RBoone »

Code:
aI("text=Macromedia MX 2004;url=http://affiliates.macromedia.com/b.asp? ... Authorized Affiliate for all Macromedia products;");

OK, wasn't sure if that was an "additional" item.
This does bring up an interesting point, as I posted on another message.
I do use the url=.....; target=_new; as you explain, the wild thing is, for some urls it works perfect, other it does not open as a "new" window.
Made me have to change the "exit" commands on those. :(
Syntax for all are identical. Wiered huh?

Sure hope someone can help on the onfunction and offfunction.
Thanks for replying.
Rand
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Sounds like it has to do with your z-index values for your tooltips. The menu is primarily made up of divs, or layers with tables in them. I am assuming your 'tooltip' script also generates divs in the area near the mouse with helpful information in them. What determines what layers are rendered over others is the z-index of the layer, which is defined in its 'style'. What you should do is increase your z-index. Not sure how high it should be, you can search the milonic_src file or mmenudom files for z-index and see if you can find some values...then just make sure yours are greater than that. If you just want it to work, try some huge number to just cover your bases.

Regarding the sticky...make sure your offfunction function is being fired by putting an alert() statement in it so you get a sure-fire sign that things are working as they should. Your 'clear tip' function is changing the visibility of your tooltip to hidden, correct? And its changing its display property to none, right? Those two properties are specific to browsers, so maybe you are calling the one for netscape but you are viewing it in IE. display:block; -> display:none; and
visibility:show; -> visibility:hidden are the two ones I use.
Give that stuff a try.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply