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:13
Couple questions on MenuItem commands
Poster: RBoone
Dated: Tuesday September 9 2003 - 4:10:55 BST
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
Re: Couple questions on MenuItem commands
Poster: John
Dated: Tuesday September 9 2003 - 19:45:58 BST
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:
target=_new;
...or whatever parameter you need (_top, _blank, etc). Note no quotes of any kind.
Full example...
Code:
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;");
features
Poster: RBoone
Dated: Tuesday September 9 2003 - 20:44:44 BST
Code:
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;");
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
Poster: Hergio
Dated: Wednesday September 10 2003 - 3:34:24 BST
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.